Skip to content

Commit

Permalink
We don't have to measure anything if we are not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Dec 7, 2019
1 parent 216fb0a commit 6bc86f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Fluent.Ribbon/Controls/QuickAccessToolBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,11 @@ private void OnShowAboveClick(object sender, RoutedEventArgs e)
/// <inheritdoc />
protected override Size MeasureOverride(Size constraint)
{
if (this.IsLoaded == false)
{
return base.MeasureOverride(constraint);
}

if ((this.cachedConstraint == constraint)
&& !this.itemsHadChanged)
{
Expand Down

0 comments on commit 6bc86f2

Please sign in to comment.