Repository navigation
Conversation
ide
force-pushed
the
@ide/rntester-ipad-tab-bottom-inset
branch
from
November 29, 2026 12:02
dd903e4 to
419f93b
Compare
On iPad a floating tab bar along the top replaces the bottom tab bar. RNTester's tabs still counted the replaced bar as a bottom bar, because it is not hidden and keeps a full-width frame at the bottom edge, so the content got the 65-point bottom inset, and each example page ended with 65 points of empty space. The replaced bar is not in a window, so only count a tab bar that is. The top inset no longer gets the bottom-bar minimum there either. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ide
force-pushed
the
@ide/rntester-ipad-tab-bottom-inset
branch
from
November 29, 2026 12:56
419f93b to
501f9be
Compare
ide
marked this pull request as ready for review
November 29, 2026 13:49
This branch has not been deployed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary:
On iPad a floating tab bar along the top replaces the bottom tab bar. RNTester's tabs still counted the replaced bar as a bottom bar, because it is not hidden and keeps a full-width frame at the bottom edge (
{{0, 1312}, {1032, 64}}on an iPad Pro 13-inch). The content got the 65-point bottom inset meant to clear a bottom bar, which example pages use as bottom padding, so each ended with 65 points of empty space. The home list is unaffected either way: its footer is at least 80 points tall.The replaced bar is not in a window, so this change counts a tab bar as a bottom bar only when it is in one. With no bottom bar the bottom inset is 0, not the iPad's 20-point bottom safe area, as it already is for the iPhone Duo's side tab bar. The top inset also leaves the bottom-bar branch, so it loses that branch's 50-point minimum.
Changelog:
[INTERNAL] [FIXED] - Remove the bottom padding from RNTester's content on iPad
Test Plan:
RNTester builds (Xcode 27.1). Run in Debug on an iPad Pro 13-inch (M5) and an iPhone 18 Pro simulator (iOS 27.0). A local UI test measures how far the Button example page's lowest text, scrolled to the end, sits above the bottom of the window:
main, 93 on this branch.The home list's last row is at y = 1291 in a 1376-point window on both builds, so the change of top inset does not move the layout. A local log in
tabSafeAreaInsetsDidChangeshows the iPad'stabBar.windowis nil in every call.