Skip to content

Conversation

@AdamGrzybkowski
Copy link
Contributor

Description

@etoledom reported weird behavior in the AltTextPage with the keyboard shown. I narrowed it down to the positionAwareImePadding() custom modifier. This forced me to look for alternatives, and I actually understood why we had the excessive padding in the first place. It turns out the insets are the sum of all, meaning if we set statusBarPadding and imePadding, both will be applied. The thing is, the keyboard handles the status bar padding itself so when it's shown we want to only have the imePadding applied. In order to fix that, we have to consume the padding set in the parent (the status bar padding) to make sure only the padding set in the children component is used.

There should be no UI changes, except for the UI glitch that should now be gone.

Testing Steps

@etoledom I believe you now best how to test it!

@AdamGrzybkowski AdamGrzybkowski requested a review from etoledom May 29, 2025 10:34
@AdamGrzybkowski AdamGrzybkowski added the Bug Something isn't working label May 29, 2025
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented May 29, 2025

📲 You can test the changes from this Pull Request in Gravatar Demo by scanning the QR code below to install the corresponding build.
App NameGravatar Demo
Commit90d8032
Direct Downloadgravatar-demo-prototype-build-pr647-90d8032.apk

Copy link
Contributor

@etoledom etoledom left a comment

Choose a reason for hiding this comment

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

This PR completely solves the mentioned issue 🎉

Thank you for the fix 🙏

@AdamGrzybkowski AdamGrzybkowski merged commit 089fb0d into trunk May 29, 2025
14 checks passed
@AdamGrzybkowski AdamGrzybkowski deleted the adam/GRA-123 branch May 29, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants