From ee13b09214abbe8b139f5cdfb3608dcf47bb8f69 Mon Sep 17 00:00:00 2001 From: Dong Bin Date: Fri, 21 Feb 2025 22:49:41 +0800 Subject: [PATCH] feat: set max size on container size change. --- src/Ursa/Controls/OverlayShared/OverlayDialogHost.Drawer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ursa/Controls/OverlayShared/OverlayDialogHost.Drawer.cs b/src/Ursa/Controls/OverlayShared/OverlayDialogHost.Drawer.cs index e796aa3..eeab0e2 100644 --- a/src/Ursa/Controls/OverlayShared/OverlayDialogHost.Drawer.cs +++ b/src/Ursa/Controls/OverlayShared/OverlayDialogHost.Drawer.cs @@ -102,6 +102,8 @@ public partial class OverlayDialogHost private static void ResetDrawerPosition(DrawerControlBase control, Size newSize) { + control.MaxWidth = newSize.Width; + control.MaxHeight = newSize.Height; if (control.Position == Position.Right) { control.Height = newSize.Height;