Skip to content

Commit

Permalink
Wpf: Fix Scrollable when child size is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Dec 3, 2024
1 parent f9d38ce commit 4919bcb
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 4919bcb

Please sign in to comment.