Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix regression in Appbar.Header statusBarHeight #3235

Merged
merged 1 commit into from
Jul 4, 2022
Merged

fix: fix regression in Appbar.Header statusBarHeight #3235

merged 1 commit into from
Jul 4, 2022

Conversation

kamui545
Copy link
Contributor

@kamui545 kamui545 commented Jul 1, 2022

Hello,

I recently tested 5.0.0-rc2 and noticed a regression on the Appbar.Header

Summary

I use it this way: <Appbar.Header statusBarHeight={0}>.
However, it is not working like before and I have a huge space instead.

The regression seems to come from this change:

c0f5007#diff-6d75c85ccdc33452375c1e517435df14b568c580a394df5c3c7b3f05add5bfa5R135

paddingTop: statusBarHeight || APPROX_STATUSBAR_HEIGHT,

If 0 then it will default on APPROX_STATUSBAR_HEIGHT instead of allowing it as valid value.

Test plan

Before PR: <Appbar.Header statusBarHeight={0}> => paddingTop = APPROX_STATUSBAR_HEIGHT
After PR: <Appbar.Header statusBarHeight={0}> => paddingTop = 0

@callstack-bot
Copy link

Hey @kamui545, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@lukewalczak lukewalczak merged commit 17976c4 into callstack:main Jul 4, 2022
@kamui545 kamui545 deleted the fix-appbar-header branch July 5, 2022 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants