Skip to content

Commit

Permalink
Merge pull request #2709 from cwensley/curtis/wpf-update-scrollable-w…
Browse files Browse the repository at this point in the history
…hen-child-sizes-change

Wpf: Fix Scrollable when child size is changed
  • Loading branch information
cwensley authored Dec 4, 2024
2 parents f9d38ce + 4919bcb commit 3ba03b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Eto.Wpf/Forms/Controls/ScrollableHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,5 +217,11 @@ public bool ExpandContentHeight
public float MinimumZoom { get { return 1f; } set { } }

public float Zoom { get { return 1f; } set { } }

public override void OnChildPreferredSizeUpdated()
{
base.OnChildPreferredSizeUpdated();
UpdateScrollSizes();
}
}
}

0 comments on commit 3ba03b9

Please sign in to comment.