Skip to content

Commit

Permalink
Merge pull request #2717 from cwensley/curtis/wpf-scrollable-performance
Browse files Browse the repository at this point in the history
WPF: Don't force layout when child preferred size changes
  • Loading branch information
cwensley authored Dec 20, 2024
2 parents f559eb4 + 3aec854 commit 802488c
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 802488c

Please sign in to comment.