Skip to content

fix(bottom-tabs): report tab bar height on placement change - #209

Merged
huhuanming merged 3 commits into
mainfrom
fix/bottom-tabs-placement-height
Nov 5, 2026
Merged

huhuanming merged 3 commits into
mainfrom
fix/bottom-tabs-placement-height

Conversation

@huhuanming

Copy link
Copy Markdown
Contributor

Summary

onTabBarMeasured only fired on creation and when the tab bar was hidden or shown. On iPhone Duo the bar moves between a vertical strip and the bottom as the device rotates or folds, so JS kept the height from the previous placement. A vertical bar reports its full column height (678pt on the outer display), which then applied to the bottom bar.

This reports the height again whenever the placement changes, right after onTabBarPlacementChange, and documents the behaviour in docs/SPEC.md.

Verification

Tested on the iPhone Duo simulator (iOS 27.1, Xcode 27.2) by adding the same line to the published 6.7.0-alpha.432 package in app-monorepo:

  • Native build succeeds.
  • Inner display, landscape to portrait: the bar moves to the bottom, and the Perps chart bar ends at y=868, just above the 83pt tab bar.
  • Folding back to the outer display: the bar returns to the side and the Perps layout matches the baseline.

The change has not been compiled from this branch; the existing native CI covers that.

Android is unaffected because this is iOS-only code.

🤖 Generated with Claude Code

The height was only reported on creation and visibility changes, so a bar moving from a vertical strip to the bottom kept its column height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A vertical bar measures its full column height, which the drawer and height hooks consumed as bottom space, rejecting most drawer swipes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@huhuanming
huhuanming enabled auto-merge (squash) November 5, 2026 03:55
With a vertical bar reporting no bottom height, a rightward drag on the bar could open the drawer and interrupt the system tab gesture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@huhuanming
huhuanming merged commit f72a3bd into main Nov 5, 2026
14 checks passed
@huhuanming
huhuanming deleted the fix/bottom-tabs-placement-height branch November 5, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants