feat: set max size on container size change.
This commit is contained in:
@@ -102,6 +102,8 @@ public partial class OverlayDialogHost
|
|||||||
|
|
||||||
private static void ResetDrawerPosition(DrawerControlBase control, Size newSize)
|
private static void ResetDrawerPosition(DrawerControlBase control, Size newSize)
|
||||||
{
|
{
|
||||||
|
control.MaxWidth = newSize.Width;
|
||||||
|
control.MaxHeight = newSize.Height;
|
||||||
if (control.Position == Position.Right)
|
if (control.Position == Position.Right)
|
||||||
{
|
{
|
||||||
control.Height = newSize.Height;
|
control.Height = newSize.Height;
|
||||||
|
|||||||
Reference in New Issue
Block a user