Skip to content

Commit 82520e0

Browse files
committed
Code Quality: Properly scale properties window (#16053)
1 parent 8f57ed4 commit 82520e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

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

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));
110114
propertiesWindow.IsMinimizable = false;
111115
propertiesWindow.IsMaximizable = false;
112-
propertiesWindow.AppWindow.Resize(new(800, 550));
113116
propertiesWindow.Content = frame;
114117
propertiesWindow.SystemBackdrop = new AppSystemBackdrop(true);
115118

0 commit comments

Comments
 (0)