Skip to content

Commit

Permalink
WPF: Don't force layout when child preferred size changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Dec 20, 2024
1 parent f559eb4 commit 3aec854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Eto.Wpf/Forms/Controls/ScrollableHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ public bool ExpandContentHeight
public override void OnChildPreferredSizeUpdated()
{
base.OnChildPreferredSizeUpdated();
UpdateScrollSizes();
if (ExpandContentWidth || ExpandContentHeight)
UpdateSizes();
}
}
}

0 comments on commit 3aec854

Please sign in to comment.