Skip to content

Fix: [BUG] StatusBar too large in landscape mode (in API 36+) #3170#3182

Open
Pastajello wants to merge 2 commits intoCommunityToolkit:mainfrom
Pastajello:bugfix/3170-statusbar-api36
Open

Fix: [BUG] StatusBar too large in landscape mode (in API 36+) #3170#3182
Pastajello wants to merge 2 commits intoCommunityToolkit:mainfrom
Pastajello:bugfix/3170-statusbar-api36

Conversation

@Pastajello
Copy link
Copy Markdown

@Pastajello Pastajello commented Apr 3, 2026

Description of Change

So, the issue here is that height in Android 36 is different for "status_bar_height" resource that is used for the status bar height. Funnily, the status_bar_height is now the "status_bar_height" / screen density and can be fixed as such.

There is also a second option - I guess more correct one, to use RootWindowInsets.GetInsets(WindowInsets.Type.StatusBars()).Top - think this will take into account whatever notch someone may create.

before after
Screenshot_1775161474 Screenshot_1775161406
Screenshot_1775162636 Screenshot_1775162543

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal) - issue was created 2 days ago, I think it was not yet checked.
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Documentation created or updated: https://github.com/MicrosoftDocs/CommunityToolkit/pulls - I'm just fixing a bug dont think the documentation has to be updated?

Additional information

For now I've created this PR as a suggestion. I'm still reading how to properly create+style etc. the PR.

@Pastajello Pastajello changed the title Fix: [BUG] StatusBar too large in landscape mode (in API 36+) #3180 Fix: [BUG] StatusBar too large in landscape mode (in API 36+) #3170 Apr 3, 2026
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.

[BUG] StatusBar too large in landscape mode

1 participant