fix(content): don't resize content on keyboard open if it's inside a modal. Fixes #2212

This commit is contained in:
Perry Govier
2014-10-06 14:56:35 -05:00
parent 29d6dc8163
commit 84f18a1c6e

View File

@@ -629,7 +629,8 @@ ionic.views.Scroll = ionic.views.View.inherit({
if( !self.isScrolledIntoView ) {
// 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
if (ionic.Platform.isIOS() || ionic.Platform.isFullScreen){
if((ionic.Platform.isIOS() || ionic.Platform.isFullScreen) && !container.parentNode.classList.contains('modal')){
// if there are things below the scroll view account for them and
// subtract them from the keyboard height when resizing
scrollBottomOffsetToTop = container.getBoundingClientRect().bottom;