This repository was archived by the owner on Oct 29, 2026. It is now read-only.
Repository navigation
Console: keep the command bar above the soft keyboard - #41
Merged
Merged
Conversation
…ayout when it closes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the soft keyboard covering the Console input in portrait.
Android (MainActivity): the IME inset was applied as WebView padding, which does not shrink WebView content, so the fixed command bar ended up under the keyboard. The WebView now gets a bottom margin equal to the keyboard height (real resize) and padding is reset to 0. The keyboard height (CSS px) is also pushed to the page via
window.meridianKeyboard(px). Margin goes back to 0 when the keyboard closes.Web (index.html): new
kbopenbody class (set from the native value, visualViewport overlap, or a >120px drop of innerHeight while a field is focused). While open in Console: command bar sits 6px above the keyboard, bottom nav is hidden in portrait, output height shrinks and stays scrolled to the latest line. On close the class is removed and everything returns to the normal rules;render()keeps the class.Headless Chrome test (portrait 412x915 with 300px keyboard, landscape 915x412 with 200px): bar bottom 6px above keyboard, output at last line, input focused; after closing, bar position, output height, nav and scroll are identical to before opening.