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

Adjust popup working area with toplevel's safe area padding #12699

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

emmauss
Copy link
Contributor

@emmauss emmauss commented Aug 28, 2023

What does the pull request do?

Adjusts the working area of managed popups with toplevel's safe area. This ensures popups are not hidden by system insets.

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #12010

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0038834-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Aug 29, 2023
Merged via the queue into master with commit fd31654 Aug 29, 2023
@maxkatz6 maxkatz6 deleted the popup-safearea branch August 29, 2023 09:02
@@ -78,7 +78,7 @@ public void Hide()
Rect? rect = null)
{
_positionerParameters.ConfigurePosition((TopLevel)_overlayLayer.GetVisualRoot()!, target, placement, offset, anchor,
gravity, constraintAdjustment, rect, FlowDirection);
gravity, constraintAdjustment | PopupPositionerConstraintAdjustment.All, rect, FlowDirection);
Copy link
Member

Choose a reason for hiding this comment

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

Why are we ignoring the user-passed values?

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.

Popups do not respect safe area padding
4 participants