Skip to content

Formatting Toolbar Leaves Editor Inaccessible When Keyboard Is Open #12

Closed

Description

@uNyanda
  • Date: 2026-08-17
  • Type: Bug
  • Severity: Medium

Environment

  • OS: Android

  • Software version: 1.1.6

    Device 1

    • Android version: 10
    • Display size: 6.3"
    • Screen resolution: 1080 x 2340
    • Aspect ratio: 19.5:9

    Device 2

    • Android version: 14
    • Display size: 6.5"
    • Screen resolution: 720 x 1600
    • Aspect ratio: 20:9

    Device 3

    • Android version: 14
    • Display size: 6.75"
    • Screen resolution: 720 x 1612
    • Aspect ratio: 20:9

Description

The formatting toolbar does not correctly handle the available editor space when the on-screen keyboard is open.

The behaviour differs between the tested devices. On Device 1, a grey block appears below the formatting toolbar, while on Devices 2 and 3 the editor becomes inaccessible in landscape orientation because the keyboard covers the available editing area.

Steps to reproduce

  1. Open a note.
  2. Tap inside the editor to open the keyboard.
  3. Observe the formatting toolbar and the available editor area.
  4. Rotate the device to landscape orientation while the keyboard remains open.
  5. Observe the editor area and formatting toolbar.

Expected Behaviour

When the keyboard is open, ZenNotes should correctly calculate the available space above the keyboard and adjust the editor and formatting toolbar accordingly.

The editor should remain visible and usable for typing.

Actual Behaviour

On Device 1, a grey block appears below the formatting toolbar while the keyboard is open. The grey block disappears when the keyboard is dismissed and does not move when scrolling.

When rotating to landscape orientation on Device 1, the ZenNotes UI above the keyboard disappears and the entire area becomes grey, while the keyboard remains visible.

On Devices 2 and 3, the ZenNotes UI and formatting toolbar remain visible in landscape, but the keyboard completely covers the editor, leaving no usable area for typing.

On Devices 2 and 3 with portrait screen orientation, the issue does not reproduce.

Additional Notes

The behaviour may be related to how ZenNotes calculates the available window height or handles the keyboard’s insets when the on-screen keyboard is displayed.

The different behaviour between the tested devices may be related to the Android version, screen dimensions, window size, or how keyboard insets are handled.

On Devices 2 and 3, rotating to landscape orientation also causes minimise, maximise, and close window controls to appear in the top-right corner, making ZenNotes appear to be using a desktop-style window layout. These controls are non-functional and do not respond when clicked. The formatting toolbar also appears misaligned, with its contents pushed towards the left side rather than being distributed correctly across the available width.

Screenshots showing the behaviour on all 3 devices are attached.

Screenshots

Portrait

Device 1 (6.3") Device 2 (6.5") Device 3 (6.75")
Image Image Image

Landscape

Device 1 (6.3") Device 2 (6.5") Device 3 (6.75")
Image Image Image

The issue on Device 1 is related to #7

Activity

  1. adibhanna commented on Aug 17, 2026

    @adibhanna
    Contributor

    Both halves of this are fixed on release/1.1.7, shipping in 1.1.7.

    Devices 2 & 3 (landscape desktop layout / inaccessible editor) — fixed in ca33369f. All of it was one bug: "is this a phone" was decided from the current viewport width (< 768px), and your 720×1600 devices are ~800 CSS px wide in landscape — past the tablet breakpoint, so rotating flipped the entire app into its desktop layout (those non-functional window buttons are the desktop title bar; the shell reports a desktop platform to the app core). The layout is now keyed off the display's shorter side — which rotation can't change — the same heuristic Android itself uses for tablets. Landscape keeps the phone layout, docks the formatting toolbar above the keyboard, and tucks the header away while you type so the editor stays usable.

    Device 1 (grey block, Android 10) — fixed in 941be44b, and thanks for the screenshots: their metadata identified the device and made this solvable. It's a double keyboard compensation specific to Android ≤ 10 with a current WebView: the WebView layer gets padded by the keyboard height and the window is resized by the keyboard (on Android 11+ only one of those happens), so the app lost the keyboard's height twice — the "grey block" is the empty strip between the doubly-shrunk page and the real keyboard, and it vanished when the keyboard closed because both compensations reverted. The app now cancels the redundant one on Android ≤ 10.

    While reproducing this on an Android 10 emulator we also found and fixed a boot failure on devices with an outdated system WebView (blank screen on launch) — worth knowing about if anyone in your community runs degoogled devices.

    Landscape verified on emulator in both orientations with the keyboard open; the Android 10 fix reproduced and verified against the exact double-inset mechanism. If Device 1 still shows anything odd on 1.1.7, please reopen — your reports have been exceptionally easy to work from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions