Skip to content

Commit

Permalink
We have to force a measure on the titlebar once we are loaded
Browse files Browse the repository at this point in the history
This also fixes #751
  • Loading branch information
batzen committed Dec 7, 2019
1 parent 6bc86f2 commit 9587a6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Fluent.Ribbon/Controls/Ribbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Fluent
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Markup;
using Fluent.Extensions;
using Fluent.Internal.KnownBoxes;
using Fluent.Localization;
using WindowChrome = ControlzEx.Windows.Shell.WindowChrome;
Expand Down Expand Up @@ -1968,6 +1969,8 @@ private void OnLoaded(object sender, RoutedEventArgs e)
this.AttachToWindow();

this.LoadInitialState();

this.TitleBar?.ForceMeasureAndArrange();
}

private void OnKeyDown(object sender, KeyEventArgs e)
Expand Down

0 comments on commit 9587a6c

Please sign in to comment.