Skip to content

Commit

Permalink
fix(keyboard): use keyboardGetHeight not ionic.keyboard.height
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Apr 15, 2015
1 parent 598245c commit 04da0fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/utils/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function keyboardShow() {
target: keyboardActiveElement,
elementTop: Math.round(elementBounds.top),
elementBottom: Math.round(elementBounds.bottom),
keyboardHeight: ionic.keyboard.height,
keyboardHeight: keyboardGetHeight(),
viewportHeight: keyboardCurrentViewportHeight
};

Expand Down Expand Up @@ -643,7 +643,7 @@ function getViewportHeight() {
(ionic.keyboard.isOpen || ionic.keyboard.isOpening) &&
!ionic.keyboard.isClosing) {

return windowHeight + ionic.keyboard.height;
return windowHeight + keyboardGetHeight();
}
return windowHeight;
}
Expand Down

0 comments on commit 04da0fc

Please sign in to comment.