src/boxesscroll.js
function getInnerLimit() {
			var items = getItems();
			var notInDeck = 0;
			if (items.length) {
				do {
					notInDeck = notInDeck + 1;
					var cont = false;
					var item = items[items.length - notInDeck];
					if (item) {
						var area = getArea(item);
						if (ctrl.horizontal) {
							cont = area.right > getEltArea().right;
						} else {
							cont = area.bottom > getEltArea().bottom;
						}
						if (!cont) {
							notInDeck--;
						}
					}
				} while (cont);
			} else {
				notInDeck = 1;
			}
			var fix = ($scope.ngLimit - items.length) + notInDeck;
			return $scope.max ? $scope.ngLimit : $scope.ngLimit - fix;
		}
function getInnerLimit() {
			var items = getItems();
			var notInDeck = 0;
			if (items.length) {
				do {
					notInDeck = notInDeck + 1;
					var cont = false;
					var item = items[items.length - notInDeck];
					if (item) {
						var area = getArea(item);
						if (ctrl.horizontal) {
							cont = area.right > getEltArea().right;
						} else {
							cont = area.bottom > getEltArea().bottom;
						}
						if (!cont) {
							notInDeck--;
						}
					}
				} while (cont);
			} else {
				notInDeck = 1;
			}
			var fix = ($scope.ngLimit - items.length) + notInDeck;
			return $scope.max ? $scope.ngLimit : $scope.ngLimit - fix;
		}
function getInnerLimit ( ) { var items = getItems ( ) ; var notInDeck = 0 ; if ( items . length ) { do { notInDeck = notInDeck + 1 ; var cont = false ; var item = items [ items . length - notInDeck ] ; if ( item ) { var area = getArea ( item ) ; if ( ctrl . horizontal ) { cont = area . right > getEltArea ( ) . right ; } else { cont = area . bottom > getEltArea ( ) . bottom ; } if ( ! cont ) { notInDeck -- ; } } } while ( cont ) ; } else { notInDeck = 1 ; } var fix = ( $scope . ngLimit - items . length ) + notInDeck ; return $scope . max ? $scope . ngLimit : $scope . ngLimit - fix ; }
Retourne la limit pour les calcul interne, cad le nombre d'items vraiment visible
@returns {Number|type.ngLimit|boxesscrollL#1.BoxScrollCtrl.$scope.ngLimit}
Retourne la limit pour les calcul interne cad le nombre d items vraiment visible