Skip to content

Commit

Permalink
Merge pull request #19224 from unoplatform/dev/doti/infobarpanel-larg…
Browse files Browse the repository at this point in the history
…e-width
  • Loading branch information
MartinZikmund authored Jan 15, 2025
2 parents 7d1efed + fc67e0f commit ebf8095
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
// MUX reference InfoBarPanel.cpp, tag winui3/release/1.4.2
// MUX reference InfoBarPanel.cpp, tag winui3/release/1.7-stable

using System;
using Windows.Foundation;
Expand Down Expand Up @@ -48,7 +48,6 @@ protected override Size MeasureOverride(Size availableSize)
{
// Add up the width of all items if they were laid out horizontally
var horizontalMargin = GetHorizontalOrientationMargin(child);
totalWidth += childDesiredSize.Width + (nItems > 0 ? (float)horizontalMargin.Left : 0) + (float)horizontalMargin.Right;
// Ignore left margin of first and right margin of last child
totalWidth += childDesiredSize.Width +
(nItems > 0 ? (float)horizontalMargin.Left : 0) +
Expand Down

0 comments on commit ebf8095

Please sign in to comment.