Skip to content

Formatting Toolbar Overlaps Typing Area #7

Closed

Description

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

Environment

  • OS: Android
  • Software version: 1.1.1

Description

The formatting toolbar overlaps the typing area when it automatically appears after tapping the editor to type.

Steps to reproduce

  1. Open a note.
  2. Tap inside the editor to start typing.
  3. The formatting toolbar appears automatically.
  4. Observe the typing area underneath the toolbar.

Expected Behaviour

The formatting toolbar should not cover the active typing area.

Actual Behaviour

The formatting toolbar overlaps the editor and covers part of the typing area.

Additional Notes

The issue occurs when the formatting toolbar appears automatically after tapping the editor.

While reproducing the issue, I also found that when minimising the keyboard from the toolbar does not close it.

A screen recording is attached showing both issues.

zennotes-formatting-toolbar-bug.mp4

Activity

  1. adibhanna commented on Aug 13, 2026

    @adibhanna
    Contributor

    Fixed in 67abb55.

    Root cause was Android-specific keyboard geometry inherited from the iPhone shell. The toolbar anchored to a keyboard-top Y computed from the Capacitor keyboardWillShow event, which is wrong twice over on Android: the reported keyboardHeight includes the gesture-nav inset that the edge-to-edge WebView margin already excludes (so the toolbar always floated a nav-bar height above the keyboard, covering the line being typed), and the plugin event races the JS resize event, so the tracked base height could be captured from an already-shrunk viewport — that's the mid-screen stuck toolbar in your recording.

    The toolbar is now anchored to the viewport bottom (with Native keyboard resize, the shrunk viewport bottom is the keyboard's top edge), so no computed geometry is involved at all. The dismiss button also blurs the editor before hiding the keyboard — Android's Keyboard.hide() doesn't resign focus like iOS, and the still-focused editor was re-summoning the keyboard, which is your second symptom.

    Verified on a Pixel 7 / API 35 emulator: the toolbar docks flush on the keyboard across repeated open/dismiss cycles, and the dismiss button closes both the keyboard and the toolbar for good. The fix will ship in the next release. Thanks for the detailed report and recording — they made this one straightforward to pin down.

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