Skip to content

Commit

Permalink
Fix window resize on flyout opening
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Jun 29, 2018
1 parent a47b20b commit eb72469
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Gallifrey.UI.Modern/ChangeLog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@
</Features>
<Bugs>
<Bug>Fix font issues in settings</Bug>
<Bug>Fix window resize on flyout opening</Bug>
</Bugs>
<Others/>
</Version>
Expand Down
7 changes: 5 additions & 2 deletions src/Gallifrey.UI.Modern/MainViews/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,14 @@ private void FlyoutOpenCheck(object sender, ElapsedEventArgs e)
if (!Topmost)
{
this.FlashWindow();
WindowState = WindowState.Normal;
Topmost = true;
Activate();
}

Topmost = true;
if (WindowState == WindowState.Minimized)
{
WindowState = WindowState.Normal;
}
}
else
{
Expand Down

0 comments on commit eb72469

Please sign in to comment.