Skip to content

Commit

Permalink
fix: Modify measured height (fix fluentribbon#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
nishy2000 committed May 4, 2021
1 parent 1f2326e commit 67efe74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Fluent.Ribbon/Controls/RibbonToolBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ private Size WrapPanelLayuot(Size availableSize, bool measure)

columnWidth = Math.Max(columnWidth, child.DesiredSize.Width);
currentheight += child.DesiredSize.Height;
resultHeight = Math.Max(resultHeight, currentheight);
}

return new Size(resultWidth + columnWidth, resultHeight);
Expand Down

0 comments on commit 67efe74

Please sign in to comment.