Skip to content

Commit 770ec60

Browse files
committed
Updated PopupSizeConstants to not make sample app popup size too large when testing Mulitple popups page
1 parent 0e8da23 commit 770ec60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/CommunityToolkit.Maui.Sample/Models/PopupSize.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ public PopupSizeConstants(IDeviceDisplay deviceDisplay)
66
{
77
Tiny = new(100, 100);
88
Small = new(300, 300);
9-
Medium = new(0.7 * (deviceDisplay.MainDisplayInfo.Width / deviceDisplay.MainDisplayInfo.Density), 0.6 * (deviceDisplay.MainDisplayInfo.Height / deviceDisplay.MainDisplayInfo.Density));
10-
Large = new(0.9 * (deviceDisplay.MainDisplayInfo.Width / deviceDisplay.MainDisplayInfo.Density), 0.8 * (deviceDisplay.MainDisplayInfo.Height / deviceDisplay.MainDisplayInfo.Density));
9+
Medium = new(0.4 * (deviceDisplay.MainDisplayInfo.Width / deviceDisplay.MainDisplayInfo.Density), 0.6 * (deviceDisplay.MainDisplayInfo.Height / deviceDisplay.MainDisplayInfo.Density));
10+
Large = new(0.5 * (deviceDisplay.MainDisplayInfo.Width / deviceDisplay.MainDisplayInfo.Density), 0.8 * (deviceDisplay.MainDisplayInfo.Height / deviceDisplay.MainDisplayInfo.Density));
1111
}
1212

1313
// examples for fixed sizes

0 commit comments

Comments
 (0)