Skip to content

Commit

Permalink
Fix MauiPopup anchor position
Browse files Browse the repository at this point in the history
  • Loading branch information
myroot committed Oct 24, 2022
1 parent a5a964d commit 29d147c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ public void ShowPopup()
{
var anchorView = VirtualView.Anchor.ToPlatform();
var anchorPosition = anchorView.ScreenPosition;
Content.ScreenToLocal(out float x, out float y, anchorPosition.X, anchorPosition.Y);
Layout = new AbsoluteLayout();
Content.UpdatePosition(new Tizen.UIExtensions.Common.Point(x, y));
Content.UpdatePosition(new Tizen.UIExtensions.Common.Point(anchorPosition.X, anchorPosition.Y));
}
else
{
Expand Down

0 comments on commit 29d147c

Please sign in to comment.