Skip to content

Commit e9fb699

Browse files
Let Windows decide initial Settings window size
This makes it more native and prevents overly large/small window on screens with different scaling levels.
1 parent f7f5194 commit e9fb699

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DesktopClock/Properties/Settings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,15 +347,15 @@ private Settings()
347347
/// <remarks>
348348
/// This remembers how wide you last made the settings window so it feels familiar the next time you open it.
349349
/// </remarks>
350-
public double SettingsWindowWidth { get; set; } = 1200;
350+
public double SettingsWindowWidth { get; set; } = double.NaN;
351351

352352
/// <summary>
353353
/// Persisted height of the settings window.
354354
/// </summary>
355355
/// <remarks>
356356
/// This remembers how tall you last made the settings window so you do not have to resize it every time.
357357
/// </remarks>
358-
public double SettingsWindowHeight { get; set; } = 900;
358+
public double SettingsWindowHeight { get; set; } = double.NaN;
359359

360360
/// <summary>
361361
/// Persisted vertical scroll offset of the settings window.

0 commit comments

Comments
 (0)