mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
don't show whitespace before keyboard shows
This commit is contained in:
@@ -642,6 +642,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
|
||||
//shrink scrollview so we can actually scroll if the input is hidden
|
||||
//if it isn't shrink so we can scroll to inputs under the keyboard
|
||||
container.style.height = (container.clientHeight - keyboardHeight) + "px";
|
||||
container.style.overflow = "visible";
|
||||
|
||||
//update scroll view
|
||||
self.resize();
|
||||
@@ -675,6 +676,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
|
||||
container.addEventListener('resetScrollView', function(e) {
|
||||
//return scrollview to original height once keyboard has hidden
|
||||
container.style.height = "";
|
||||
container.style.overflow = "";
|
||||
self.resize();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user