Browse Source
Merge pull request #12708 from AvaloniaUI/popup_constraint_hotfix
Remove hardcoded popup constraint adjustment
pull/12512/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/Primitives/OverlayPopupHost.cs
|
|
@ -78,7 +78,7 @@ namespace Avalonia.Controls.Primitives |
|
|
Rect? rect = null) |
|
|
Rect? rect = null) |
|
|
{ |
|
|
{ |
|
|
_positionerParameters.ConfigurePosition((TopLevel)_overlayLayer.GetVisualRoot()!, target, placement, offset, anchor, |
|
|
_positionerParameters.ConfigurePosition((TopLevel)_overlayLayer.GetVisualRoot()!, target, placement, offset, anchor, |
|
|
gravity, constraintAdjustment | PopupPositionerConstraintAdjustment.All, rect, FlowDirection); |
|
|
gravity, constraintAdjustment, rect, FlowDirection); |
|
|
UpdatePosition(); |
|
|
UpdatePosition(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|