Skip to content

Commit 84a7995

Browse files
committed
fixed style cop issue
1 parent c998f09 commit 84a7995

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/Carousel/CarouselPanel.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,8 @@ protected override Size MeasureOverride(Size availableSize)
247247
}
248248
}
249249

250-
double width;
251-
252250
// It's a Auto size, so we define the size should be 3 items
251+
double width;
253252
if (double.IsInfinity(availableSize.Width))
254253
{
255254
width = Carousel.Orientation == Orientation.Horizontal ? containerWidth * (Children.Count > 3 ? 3 : Children.Count) : containerWidth;
@@ -259,8 +258,8 @@ protected override Size MeasureOverride(Size availableSize)
259258
width = availableSize.Width;
260259
}
261260

262-
double height;
263261
// It's a Auto size, so we define the size should be 3 items
262+
double height;
264263
if (double.IsInfinity(availableSize.Height))
265264
{
266265
height = Carousel.Orientation == Orientation.Vertical ? containerHeight * (Children.Count > 3 ? 3 : Children.Count) : containerHeight;

0 commit comments

Comments
 (0)