File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Microsoft.Toolkit.Uwp.UI.Controls/Carousel Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -247,9 +247,8 @@ protected override Size MeasureOverride(Size availableSize)
247
247
}
248
248
}
249
249
250
- double width ;
251
-
252
250
// It's a Auto size, so we define the size should be 3 items
251
+ double width ;
253
252
if ( double . IsInfinity ( availableSize . Width ) )
254
253
{
255
254
width = Carousel . Orientation == Orientation . Horizontal ? containerWidth * ( Children . Count > 3 ? 3 : Children . Count ) : containerWidth ;
@@ -259,8 +258,8 @@ protected override Size MeasureOverride(Size availableSize)
259
258
width = availableSize . Width ;
260
259
}
261
260
262
- double height ;
263
261
// It's a Auto size, so we define the size should be 3 items
262
+ double height ;
264
263
if ( double . IsInfinity ( availableSize . Height ) )
265
264
{
266
265
height = Carousel . Orientation == Orientation . Vertical ? containerHeight * ( Children . Count > 3 ? 3 : Children . Count ) : containerHeight ;
You can’t perform that action at this time.
0 commit comments