Skip to content

Commit

Permalink
chore: fix PlacementArrangeOverride condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Dec 24, 2024
1 parent 77656ae commit 4aee3bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Uno.UI/UI/Xaml/Controls/Popup/PopupPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,12 @@ protected override Size ArrangeOverride(Size finalSize)
#endif
;

if (!isFlyoutManagedDatePicker && Popup.PlacementTarget is not null
if ((!isFlyoutManagedDatePicker
#if __ANDROID__ || __IOS__
|| NativeAnchor is not null
|| NativeAnchor is not null
#endif
|| !finalFrame.IntersectWith(GetVisibleBounds()).Equals(finalFrame) // if the finalFrame spills out of the window, always use PlacementArrangeOverride
|| !finalFrame.IntersectWith(GetVisibleBounds()).Equals(finalFrame) // if the finalFrame spills out of the window, always use PlacementArrangeOverride
) && Popup.PlacementTarget is not null
)
{
return PlacementArrangeOverride(Popup, finalSize);
Expand Down

0 comments on commit 4aee3bf

Please sign in to comment.