Skip to content

Commit 35c9c2f

Browse files
committed
Update console-sheet.js
1 parent da34251 commit 35c9c2f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,12 +668,18 @@ class ConsoleSheet {
668668

669669
navigator.virtualKeyboard.overlaysContent = true;
670670

671+
const keyboardHeight = navigator.virtualKeyboard.boundingRect.height;
672+
673+
body.style.setProperty('--keyboard-height', keyboardHeight + 'px');
674+
671675
});
672676

673677
input.on('blur', () => {
674678

675679
navigator.virtualKeyboard.overlaysContent = false;
676680

681+
body.style.setProperty('--keyboard-height', 0);
682+
677683
});
678684

679685

0 commit comments

Comments
 (0)