mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(keyboard): reset modal scroll view on show
This commit is contained in:
5
js/angular/service/modal.js
vendored
5
js/angular/service/modal.js
vendored
@@ -137,6 +137,11 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl
|
||||
$ionicBody.append(self.el);
|
||||
}
|
||||
|
||||
// if modal was closed while the keyboard was up, reset scroll view on
|
||||
// next show since we can only resize it once it's visible
|
||||
var scrollCtrl = modalEl.data('$$ionicScrollController');
|
||||
scrollCtrl && scrollCtrl.resize();
|
||||
|
||||
if (target && self.positionView) {
|
||||
self.positionView(target, modalEl);
|
||||
// set up a listener for in case the window size changes
|
||||
|
||||
Reference in New Issue
Block a user