|
1 | 1 | /*! |
2 | 2 | * angular-ui-scroll |
3 | 3 | * https://github.com/angular-ui/ui-scroll.git |
4 | | - * Version: 1.3.3 -- 2016-03-17T12:18:01.421Z |
| 4 | + * Version: 1.3.3 -- 2016-03-23T14:20:29.512Z |
5 | 5 | * License: MIT |
6 | 6 | */ |
7 | 7 |
|
|
11 | 11 |
|
12 | 12 | var _typeof = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === 'function' && obj.constructor === Symbol ? 'symbol' : typeof obj; }; |
13 | 13 |
|
14 | | -/*! |
15 | | - globals: angular, window |
16 | | -
|
17 | | - List of used element methods available in JQuery but not in JQuery Lite |
18 | | -
|
19 | | - element.before(elem) |
20 | | - element.height() |
21 | | - element.outerHeight(true) |
22 | | - element.height(value) = only for Top/Bottom padding elements |
23 | | - element.scrollTop() |
24 | | - element.scrollTop(value) |
| 14 | +/*! |
| 15 | + globals: angular, window |
| 16 | +
|
| 17 | + List of used element methods available in JQuery but not in JQuery Lite |
| 18 | +
|
| 19 | + element.before(elem) |
| 20 | + element.height() |
| 21 | + element.outerHeight(true) |
| 22 | + element.height(value) = only for Top/Bottom padding elements |
| 23 | + element.scrollTop() |
| 24 | + element.scrollTop(value) |
25 | 25 | */ |
26 | 26 | angular.module('ui.scroll', []).directive('uiScrollViewport', function () { |
27 | 27 | return { |
@@ -135,11 +135,11 @@ angular.module('ui.scroll', []).directive('uiScrollViewport', function () { |
135 | 135 | }, |
136 | 136 |
|
137 | 137 |
|
138 | | - /** |
139 | | - * inserts wrapped element in the buffer |
140 | | - * the first argument is either operation keyword (see below) or a number for operation 'insert' |
141 | | - * for insert the number is the index for the buffer element the new one have to be inserted after |
142 | | - * operations: 'append', 'prepend', 'insert', 'remove', 'update', 'none' |
| 138 | + /** |
| 139 | + * inserts wrapped element in the buffer |
| 140 | + * the first argument is either operation keyword (see below) or a number for operation 'insert' |
| 141 | + * for insert the number is the index for the buffer element the new one have to be inserted after |
| 142 | + * operations: 'append', 'prepend', 'insert', 'remove', 'update', 'none' |
143 | 143 | */ |
144 | 144 | insert: function insert(operation, item) { |
145 | 145 | var itemScope = $scope.$new(); |
@@ -568,12 +568,12 @@ angular.module('ui.scroll', []).directive('uiScrollViewport', function () { |
568 | 568 | adapter = angular.extend(adapterOnScope, adapter); |
569 | 569 | } |
570 | 570 |
|
571 | | - /** |
572 | | - * Build padding elements |
573 | | - * |
574 | | - * Calling linker is the only way I found to get access to the tag name of the template |
575 | | - * to prevent the directive scope from pollution a new scope is created and destroyed |
576 | | - * right after the builder creation is completed |
| 571 | + /** |
| 572 | + * Build padding elements |
| 573 | + * |
| 574 | + * Calling linker is the only way I found to get access to the tag name of the template |
| 575 | + * to prevent the directive scope from pollution a new scope is created and destroyed |
| 576 | + * right after the builder creation is completed |
577 | 577 | */ |
578 | 578 | linker($scope.$new(), function (template, scope) { |
579 | 579 | viewport.createPaddingElements(template[0]); |
@@ -874,6 +874,9 @@ angular.module('ui.scroll', []).directive('uiScrollViewport', function () { |
874 | 874 |
|
875 | 875 | if (pending.length) { |
876 | 876 | unbindEvents(); |
| 877 | + } else { |
| 878 | + adapter.calculateProperties(); |
| 879 | + $scope.$apply(); |
877 | 880 | } |
878 | 881 | } |
879 | 882 | } |
|
0 commit comments