Skip to content

Commit d2408cb

Browse files
committed
Fixed FixedRowLength behavior
1 parent 8d64ee6 commit d2408cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/WrapPanel2/samples/WrapPanel2BasicSample.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
</Style>
2121
</Page.Resources>
2222

23-
<Grid MaxHeight="600">
23+
<Grid MaxHeight="600"
24+
Margin="16">
2425
<Grid.RowDefinitions>
2526
<RowDefinition Height="auto" />
2627
<RowDefinition />

components/WrapPanel2/src/WrapPanel2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private void ArrangeRow(ref UVCoord pos, RowSpec row, UVCoord uvFinalSize, Queue
133133
}
134134

135135
// Set a flag for if the row is being forced to stretch
136-
bool forceStretch = row.PortionsSum is 0 && StretchChildren is not StretchChildren.StarSizedOnly;
136+
bool forceStretch = FixedRowLengths && row.PortionsSum is 0 && StretchChildren is not StretchChildren.StarSizedOnly;
137137

138138
// Setup portionSize for forced stretching
139139
if (forceStretch)

0 commit comments

Comments
 (0)