Skip to content

Fix: calculate banner margins correctly for Android 15+ / #390#431

Open
MisterNox wants to merge 1 commit intocapacitor-community:mainfrom
MisterNox:fix/issue-390-solves-margin-calculation
Open

Fix: calculate banner margins correctly for Android 15+ / #390#431
MisterNox wants to merge 1 commit intocapacitor-community:mainfrom
MisterNox:fix/issue-390-solves-margin-calculation

Conversation

@MisterNox
Copy link
Copy Markdown

Due to the handling of safe areas in Android 15+ the event listener overrides the banner margins with only the top or bottom inset. My adjust saves the intitially calculated margins in a variable called margins, which is then used in the event handler as a base to add insets accordingly every time the handler is called.

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.

1 participant