Skip to content

Fix toolbar clipping on iOS 26.0: use 48pt instead of hard-coded 44pt#459

Merged
tommyming merged 1 commit intosuzuki-0000:masterfrom
Tuccuay:fix/ios26toolbarheight
Sep 5, 2025
Merged

Fix toolbar clipping on iOS 26.0: use 48pt instead of hard-coded 44pt#459
tommyming merged 1 commit intosuzuki-0000:masterfrom
Tuccuay:fix/ios26toolbarheight

Conversation

@Tuccuay
Copy link
Copy Markdown
Contributor

@Tuccuay Tuccuay commented Sep 4, 2025

Summary

On iOS 26.0, UIToolbar height is 48pt. Our image viewer computed a 44pt toolbar inside frameForToolbarAtOrientation and also used clipsToBounds = true, which led to top/bottom clipping of bar button items on iOS 26.0.
This MR updates frameForToolbarAtOrientation to return a version-aware height and removes an unused helper function.

What’s Changed

  • Update frameForToolbarAtOrientation to use 48pt on iOS 26.0 and 44pt on older iOS.
  • Preserve existing behavior (including clipsToBounds = true); only the height calculation changes.
  • Remove unused frameForToolbarHideAtOrientation (no remaining references).
before after
截屏 2025-09-04 18 54 06 IMG_3683

@tommyming tommyming self-requested a review September 5, 2025 02:18
@tommyming tommyming merged commit 323965a into suzuki-0000:master Sep 5, 2025
1 check passed
@tommyming
Copy link
Copy Markdown
Collaborator

@Tuccuay lgtm! thanks and merged

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.

2 participants