Skip to content

Commit

Permalink
fix: Ensure Measure/Arrange of panel when popup offset changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Dec 14, 2022
1 parent f799360 commit eb2706b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/Popup/Popup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ private void OnPopupPanelChanged(PopupPanel oldHost, PopupPanel newHost)

partial void OnPopupPanelChangedPartial(PopupPanel previousPanel, PopupPanel newPanel);

partial void OnVerticalOffsetChangedPartial(double oldVerticalOffset, double newVerticalOffset) =>
PopupPanel?.InvalidateMeasure();

partial void OnHorizontalOffsetChangedPartial(double oldHorizontalOffset, double newHorizontalOffset) =>
PopupPanel?.InvalidateMeasure();

internal override void UpdateThemeBindings(Data.ResourceUpdateReason updateReason)
{
base.UpdateThemeBindings(updateReason);
Expand Down

0 comments on commit eb2706b

Please sign in to comment.