From 4919bcbe845bfc9b8a119917540043e91112b621 Mon Sep 17 00:00:00 2001 From: Curtis Wensley Date: Tue, 3 Dec 2024 10:34:48 -0800 Subject: [PATCH] Wpf: Fix Scrollable when child size is changed --- src/Eto.Wpf/Forms/Controls/ScrollableHandler.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Eto.Wpf/Forms/Controls/ScrollableHandler.cs b/src/Eto.Wpf/Forms/Controls/ScrollableHandler.cs index 115ff68e8..1a3f4f53d 100755 --- a/src/Eto.Wpf/Forms/Controls/ScrollableHandler.cs +++ b/src/Eto.Wpf/Forms/Controls/ScrollableHandler.cs @@ -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(); + } } }