Merge pull request #586 from irihitech/drawer

Set drawer max size on container size change.
This commit is contained in:
Dong Bin
2025-02-22 11:07:25 +08:00
committed by GitHub

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;