Skip to content

Commit 693bcbe

Browse files
committed
Code changes
1 parent a5bc6dc commit 693bcbe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

maui/src/Expander/SfExpander.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,10 +1521,11 @@ protected override Size MeasureContent(double widthConstraint, double heightCons
15211521
// To update width when loaded expander inside HorizontalStackLayout and AbsoluteLayout.
15221522
if (width == 0)
15231523
{
1524-
#if !WINDOWS
1525-
var scaledScreenSize = new Size(DeviceDisplay.MainDisplayInfo.Width / DeviceDisplay.MainDisplayInfo.Density, DeviceDisplay.MainDisplayInfo.Height / DeviceDisplay.MainDisplayInfo.Density);
1524+
var scaledScreenSize =
1525+
#if WINDOWS
1526+
new Size(300, 300);
15261527
#else
1527-
var scaledScreenSize = new Size(300, 300);
1528+
new Size(DeviceDisplay.MainDisplayInfo.Width / DeviceDisplay.MainDisplayInfo.Density, DeviceDisplay.MainDisplayInfo.Height / DeviceDisplay.MainDisplayInfo.Density);
15281529
#endif
15291530
double scaledWidth = Math.Min(scaledScreenSize.Width, scaledScreenSize.Height);
15301531
width = scaledWidth;

0 commit comments

Comments
 (0)