Skip to content

Commit b9640fd

Browse files
fix: max height & width default value
1 parent 63e0e52 commit b9640fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/BlazorDesktop/Wpf/BlazorDesktopWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ private void InitializeWindow()
103103
Width = _config.GetValue<int?>(WindowDefaults.Width) ?? 1366;
104104
MinHeight = _config.GetValue<int?>(WindowDefaults.MinHeight) ?? 0;
105105
MinWidth = _config.GetValue<int?>(WindowDefaults.MinWidth) ?? 0;
106-
MaxHeight = _config.GetValue<int?>(WindowDefaults.MaxHeight) ?? 0;
107-
MaxWidth = _config.GetValue<int?>(WindowDefaults.MaxWidth) ?? 0;
106+
MaxHeight = _config.GetValue<int?>(WindowDefaults.MaxHeight) ?? double.PositiveInfinity;
107+
MaxWidth = _config.GetValue<int?>(WindowDefaults.MaxWidth) ?? double.PositiveInfinity;
108108
UseFrame(_config.GetValue<bool?>(WindowDefaults.Frame) ?? true);
109109
ResizeMode = (_config.GetValue<bool?>(WindowDefaults.Resizable) ?? true) ? ResizeMode.CanResize : ResizeMode.NoResize;
110110
UseIcon(_config.GetValue<string?>(WindowDefaults.Icon) ?? string.Empty);

0 commit comments

Comments
 (0)