Skip to content

Commit 0ab9247

Browse files
committed
Update console-sheet.js
1 parent b7436aa commit 0ab9247

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

live-view/extensions/mobile-console/console-sheet.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -670,10 +670,6 @@ class ConsoleSheet {
670670

671671
navigator.virtualKeyboard.overlaysContent = true;
672672

673-
const keyboardHeight = navigator.virtualKeyboard.boundingRect.height;
674-
675-
body.style.setProperty('--keyboard-height', keyboardHeight + 'px');
676-
677673
});
678674

679675
input.on('blur', () => {
@@ -689,6 +685,8 @@ class ConsoleSheet {
689685

690686
const keyboardHeight = navigator.virtualKeyboard.boundingRect.height;
691687

688+
body.style.setProperty('--keyboard-height', keyboardHeight + 'px');
689+
692690
if (document.activeElement === input &&
693691
keyboardHeight === 0) {
694692

0 commit comments

Comments
 (0)