fix(keyboard): reset modal scroll view on show

This commit is contained in:
Tim Lancina
2015-04-11 04:50:14 -05:00
parent a416c66d8a
commit c64a10b185

View File

@@ -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