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

viewportSafeAreaInsetBottom not calculated properly #93

Open
reflash opened this issue Jan 12, 2025 · 1 comment
Open

viewportSafeAreaInsetBottom not calculated properly #93

reflash opened this issue Jan 12, 2025 · 1 comment

Comments

@reflash
Copy link

reflash commented Jan 12, 2025

I have an issue with viewportSafeAreaInsetBottom, I'm using it to set padding for bottom tabbar.
When I open a page with an input, focus an element and then use backbutton to get to the initial page for some reason viewportSafeAreaInsetBottom becomes 0 (on iphone), so the tabbar is not padded properly until I trigger some other ui animation to rerender this page

@reflash
Copy link
Author

reflash commented Jan 12, 2025

I have a workaround that works for me, but maybe this still has to be fixed somehow
To fix it I just use css vars instead of functions

paddingBottom: 'calc(var(--tg-viewport-content-safe-area-inset-bottom) + var(--tg-viewport-safe-area-inset-bottom))', 

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

No branches or pull requests

1 participant