Skip to content

[CameraPreview] Removed manual safe-area padding on iOS and set SafeAreaEdges.None on internal containers so the top toolbar renders correctly on both modal and regular shell pages.#874

Merged
Vetle444 merged 3 commits into
mainfrom
vefi/barcodeTopToolbar
May 26, 2026

Conversation

@Vetle444
Copy link
Copy Markdown
Contributor

Problem

On iOS, CameraPreview applied manual safe-area padding (Padding = SafeAreaInsets) to the entire view. This shrunk the frame height used for the letterbox/toolbar height calculation, making the top toolbar too small — especially on regular shell pages where the shell already handles safe area insets.

Fix

  • Removed the manual Padding assignment in OnLoaded on iOS
  • Set SafeAreaEdges.None on the internal m_grid, m_topToolbarContainer, and m_bottomToolbarContainer so MAUI does not apply automatic safe-area insets to these containers

Vetle Finstad added 2 commits May 26, 2026 14:04
Copilot AI review requested due to automatic review settings May 26, 2026 12:05
@Vetle444 Vetle444 enabled auto-merge (squash) May 26, 2026 12:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Vetle444 Vetle444 merged commit 76c729a into main May 26, 2026
1 check passed
@Vetle444 Vetle444 deleted the vefi/barcodeTopToolbar branch May 26, 2026 13:11
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