feat: set max size on container size change.

This commit is contained in:
Dong Bin
2025-02-21 22:49:41 +08:00
parent 9e7f3a6cfc
commit ee13b09214

View File

@@ -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;