From 002d851070c7d8e5144fc9bcd81b3380a89581c0 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Wed, 27 Mar 2024 18:32:25 +0800 Subject: [PATCH] feat: also works for non-modal. --- src/Ursa/Controls/OverlayShared/OverlayDialogHost.Dialog.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ursa/Controls/OverlayShared/OverlayDialogHost.Dialog.cs b/src/Ursa/Controls/OverlayShared/OverlayDialogHost.Dialog.cs index 11e7d09..5cde398 100644 --- a/src/Ursa/Controls/OverlayShared/OverlayDialogHost.Dialog.cs +++ b/src/Ursa/Controls/OverlayShared/OverlayDialogHost.Dialog.cs @@ -84,6 +84,11 @@ public partial class OverlayDialogHost } this.Children.Add(control); _layers.Add(new DialogPair(mask, control, false)); + if (control.IsFullScreen) + { + control.Width = Bounds.Width; + control.Height = Bounds.Height; + } control.Measure(this.Bounds.Size); control.Arrange(new Rect(control.DesiredSize)); SetToPosition(control);