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

[Super Editor] - Fix KeyboardScaffoldSafeArea so that when there's only a single scope, that scope is used instead of MediaQuery (Resolves #2502) #2503

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

matthew-carroll
Copy link
Contributor

[Super Editor] - Fix KeyboardScaffoldSafeArea so that when there's only a single scope, that scope is used instead of MediaQuery (Resolves #2502)

The KeyboardScaffoldSafeArea and KeyboardScaffoldSafeAreaScope talk to each other in the widget tree so that they respect their ancestors. However, I focused so much on that intercommunication that I screwed up the case of a single safe area scope. This PR fixes that issue by applying the safe area insets from the singular safe area scope, when there's no ancestor.

…ly a single scope, that scope is used instead of MediaQuery (Resolves #2502)
@matthew-carroll
Copy link
Contributor Author

@angelosilvestre I'm gonna merge and cut a new release to fix this bug in ClickUp. Feel free to comment after.

@matthew-carroll matthew-carroll merged commit 57ead10 into main Jan 15, 2025
16 checks passed
@matthew-carroll matthew-carroll deleted the 2502_fix-keyboard-safe-area-bug branch January 15, 2025 01:20
github-actions bot pushed a commit that referenced this pull request Jan 15, 2025
…ly a single scope, that scope is used instead of MediaQuery (Resolves #2502) (#2503)
Copy link
Collaborator

@angelosilvestre angelosilvestre left a comment

Choose a reason for hiding this comment

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

LGTM

matthew-carroll added a commit that referenced this pull request Jan 15, 2025
…ly a single scope, that scope is used instead of MediaQuery (Resolves #2502) (#2503)
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.

[Super Editor] - Keyboard safe area doesn't have correct safe area in some situations
2 participants