Skip to content

Commit 7d12a38

Browse files
authored
Code Quality: Properly scale properties window (#16053)
1 parent 8f57ed4 commit 7d12a38

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Files.App/Utils/Storage/Helpers/FilePropertiesHelpers.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ public static void OpenPropertiesWindow(object item, IShellPage associatedInstan
107107
propertiesWindow.Closed += PropertiesWindow_Closed;
108108
}
109109

110-
propertiesWindow.IsMinimizable = false;
111-
propertiesWindow.IsMaximizable = false;
112-
propertiesWindow.AppWindow.Resize(new(800, 550));
110+
var width = Convert.ToInt32(800 * App.AppModel.AppWindowDPI);
111+
var height = Convert.ToInt32(500 * App.AppModel.AppWindowDPI);
112+
113+
propertiesWindow.AppWindow.Resize(new (width, height));
113114
propertiesWindow.Content = frame;
114115
propertiesWindow.SystemBackdrop = new AppSystemBackdrop(true);
115116

0 commit comments

Comments
 (0)