diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-09-27 12:03:14 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-09-27 12:03:14 -0400 |
| commit | fc73a05c21b29f6b00cc4d5a76542c9ae80ec650 (patch) | |
| tree | 4d529d1933f37a80aea5c9aacfa5bbda256c785f /www/external | |
| parent | 8dda11844174a4af4882ffe68d2db4c5ed73b4e5 (diff) | |
fixed flickering problem in orientation change
Diffstat (limited to 'www/external')
| -rwxr-xr-x | www/external/ion-pullup.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/www/external/ion-pullup.js b/www/external/ion-pullup.js index 30714d0c..9bd5ab56 100755 --- a/www/external/ion-pullup.js +++ b/www/external/ion-pullup.js @@ -52,6 +52,7 @@ angular.module('ionic-pullup', []) $element.css({'height': footer.height + 'px'}); if (footer.initialState == FooterState.MINIMIZED) { + minimize(); } else { collapse(); @@ -62,6 +63,7 @@ angular.module('ionic-pullup', []) $timeout(function() { computeHeights(); }, 300); + $element.css({'transition': 'none', 'padding': 0}); } function recomputeAllHeights() { @@ -75,6 +77,7 @@ angular.module('ionic-pullup', []) footer.lastPosY = 0; // adjust CSS values with new heights in case they changed $element.css({'height':footer.height + 'px', '-webkit-transform': 'translate3d(0, 0, 0)', 'transform': 'translate3d(0, 0, 0)'}); + $element.css({'transition': '300ms ease-in-out', 'padding': 0}); $scope.onExpand(); footer.state = FooterState.EXPANDED; } @@ -235,9 +238,8 @@ angular.module('ionic-pullup', []) }); function updateUI() { - $timeout(function() { - element.css('left', (($window.innerWidth - width) / 2) + 'px'); - }, 300); + $timeout ( function() { + element.css('left', (($window.innerWidth - width) / 2) + 'px');},300); } $ionicPlatform.ready(function() { |
