Skip to content

Commit e4d66fc

Browse files
authored
Improve MAUI sample viewer thumbnail size on tablets (#1214)
1 parent 9fcb2b6 commit e4d66fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MAUI/Maui.Samples/ViewModels/CategoryViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public CategoryViewModel(List<SampleInfo> sampleInfos, string category)
3232
sampleImageWidth = displayWidth / displayDensity - 20;
3333

3434
// For tablets check to see if multiple images could fit rather than one tablet sized image.
35-
// If multiple images of arbitrary size "400" would fit then update the image width.
36-
var sampleImageFactor = Math.Floor(sampleImageWidth / 400);
35+
// If multiple images of arbitrary size "300" would fit then update the image width.
36+
var sampleImageFactor = Math.Floor(sampleImageWidth / 300);
3737

3838
if (sampleImageFactor > 1)
3939
{

0 commit comments

Comments
 (0)