Skip to content

Commit

Permalink
fix for #2538
Browse files Browse the repository at this point in the history
don't close unpinned Flyout when a dialog is open
  • Loading branch information
punker76 committed Jun 7, 2016
1 parent c48e048 commit fe98adc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MahApps.Metro/Controls/MetroWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,8 @@ private void FlyoutsPreviewMouseDown(object sender, MouseButtonEventArgs e)
{
// no preview if we just clicked these elements
if (element.TryFindParent<Flyout>() != null
|| Equals(element, this.overlayBox)
|| element.TryFindParent<BaseMetroDialog>() != null
|| Equals(element.TryFindParent<ContentControl>(), this.icon)
|| element.TryFindParent<WindowCommands>() != null
|| element.TryFindParent<WindowButtonCommands>() != null)
Expand Down
1 change: 1 addition & 0 deletions docs/release-notes/1.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,4 @@ MahApps.Metro v1.3.0 bug fix and feature release.
- #2485 Hiding close button and title leaves blank space in top-positioned flyouts #2485
- #2531 Setting TitleFontSize & CountFontSize in Tile is no longer working
- #2109 Size of MahApps Dialog background..
- #2538 Focus Message Dialog from flyout

0 comments on commit fe98adc

Please # to comment.