Skip to content

Commit

Permalink
Fixes #769 by forcing a new async measure
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Feb 16, 2020
1 parent 0ca0919 commit d5969e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [#765](../../issues/765) - InRibbonGallery Resizing Issues
- [#766](../../issues/766) - Resizing of InRibbonGallery in a DataTemplate does not work
- [#768](../../issues/768) - Accessibility Insights: "An onscreen element must not have a null"
- [#769](../../issues/769) - GalleryPanel does not resize properly on apply of filter
- [#770](../../issues/770) - Cannot left align the content in InRibbonGallery

- ### Enhancements/Features
Expand Down
3 changes: 3 additions & 0 deletions Fluent.Ribbon/Controls/GalleryPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ protected override Size MeasureOverride(Size availableSize)
if (this.IgnoreNextMeasureCall)
{
this.IgnoreNextMeasureCall = false;

// Force a new async measure after we returned our temporary desired size
this.RunInDispatcherAsync(this.ForceMeasure);
return this.DesiredSize;
}

Expand Down

0 comments on commit d5969e6

Please sign in to comment.