Skip to content

Fixed HTML navbar scrolls with content in Normal Mode #41

Open

Description

@joemasilotti

When using a fixed-position HTML navbar (e.g., position: fixed; top: 0) in Normal Mode with edge-to-edge enabled, the navbar scrolls with the page content instead of staying pinned to the top.

This happens because contentInsetAdjustmentBehavior = .never on the WKWebView means the scroll view doesn't account for fixed elements in the same way a native navigation bar would.

To reproduce:

  1. Create a Normal Mode app with a fixed HTML navbar (no native navbar)
  2. Add enough content to scroll
  3. Scroll down — the fixed navbar moves with the content

Visible in: Habits demo app

Workaround: Use a native navbar (native_navbar_tag) instead of an HTML fixed navbar.

Activity

  1. moved this from Backlog to In progress in Ruby Native Roadmapon Apr 20, 2026
  2. moved this from In progress to Backlog in Ruby Native Roadmapon Apr 20, 2026
  3. joemasilotti commented on May 5, 2026

    @joemasilotti
    MemberAuthor

    Note that this only happens on the first tab. Other tabs work fine.

    There are also weird issues with the keyboard appearing/disappearing.

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

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions