We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047b226 commit 730a43cCopy full SHA for 730a43c
src/public/app/widgets/ribbon_widgets/classic_editor_toolbar.ts
@@ -119,10 +119,8 @@ export default class ClassicEditorToolbar extends NoteContextAwareWidget {
119
#adjustPosition() {
120
let bottom = window.innerHeight - (window.visualViewport?.height || 0);
121
122
- if (bottom === 0) {
123
- // The keyboard is not visible, align it to the launcher bar instead.
124
- bottom = document.getElementById("mobile-bottom-bar")?.offsetHeight || 0;
125
- }
+ // When the keyboard is not visible, align it to the launcher bar instead.
+ bottom = Math.max(bottom, document.getElementById("mobile-bottom-bar")?.offsetHeight || 0);
126
127
this.$widget.css("bottom", `${bottom}px`);
128
}
0 commit comments