Skip to content

Commit da1c566

Browse files
committed
HOTFIX crash on initializing popup window for surtain monitors
1 parent 55f599b commit da1c566

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎WheelWizard/Views/Popups/Base/PopupWindow.axaml.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ protected override void OnResized(WindowResizedEventArgs e)
116116
{
117117
base.OnResized(e);
118118

119+
if (CompleteBorder == null)
120+
return;
121+
119122
CompleteBorder.Measure(new(double.PositiveInfinity, double.PositiveInfinity));
120123
var desiredSize = CompleteBorder.DesiredSize;
121124
SetWindowSize(desiredSize);

0 commit comments

Comments
 (0)