Skip to content

Commit

Permalink
WindowsFormsHosts are correctly collapsed again when backstage is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Aug 22, 2016
1 parent 31c34c0 commit 1466a73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Fluent.Ribbon/Controls/Backstage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,19 @@ protected virtual bool Show()

var window = Window.GetWindow(this);

if (window == null
&& this.Parent != null)
{
window = Window.GetWindow(this.Parent);
}

this.SaveWindowSize(window);
this.SaveWindowMinSize(window);

if (window != null)
{
window.KeyDown += this.HandleWindowKeyDown;


if (this.savedWindowMinWidth < 500)
{
window.MinWidth = 500;
Expand Down

0 comments on commit 1466a73

Please sign in to comment.