Skip to content

Commit 04da0fc

Browse files
committed
fix(keyboard): use keyboardGetHeight not ionic.keyboard.height
1 parent 598245c commit 04da0fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: js/utils/keyboard.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ function keyboardShow() {
512512
target: keyboardActiveElement,
513513
elementTop: Math.round(elementBounds.top),
514514
elementBottom: Math.round(elementBounds.bottom),
515-
keyboardHeight: ionic.keyboard.height,
515+
keyboardHeight: keyboardGetHeight(),
516516
viewportHeight: keyboardCurrentViewportHeight
517517
};
518518

@@ -643,7 +643,7 @@ function getViewportHeight() {
643643
(ionic.keyboard.isOpen || ionic.keyboard.isOpening) &&
644644
!ionic.keyboard.isClosing) {
645645

646-
return windowHeight + ionic.keyboard.height;
646+
return windowHeight + keyboardGetHeight();
647647
}
648648
return windowHeight;
649649
}

0 commit comments

Comments
 (0)