Skip to content

Commit 1a21156

Browse files
authored
Fix: Fixed issue where properties window was always on top (#10897)
1 parent 4b8f172 commit 1a21156

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Files.App/Helpers/FilePropertiesHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ public static async Task OpenPropertiesWindowAsync(object item, IShellPage assoc
6666

6767
var propertiesWindow = new WinUIEx.WindowEx
6868
{
69-
IsAlwaysOnTop = true,
7069
IsMinimizable = false,
7170
IsMaximizable = false,
7271
MinWidth = 460,
7372
MinHeight = 550,
73+
Width = 550,
74+
Height = 550,
7475
Content = frame,
7576
Backdrop = new WinUIEx.MicaSystemBackdrop(),
7677
};
@@ -81,7 +82,6 @@ public static async Task OpenPropertiesWindowAsync(object item, IShellPage assoc
8182
appWindow.TitleBar.ButtonBackgroundColor = Colors.Transparent;
8283
appWindow.TitleBar.ButtonInactiveBackgroundColor = Colors.Transparent;
8384

84-
appWindow.Resize(new SizeInt32(460, 550));
8585
appWindow.SetIcon(LogoPath);
8686

8787
if (frame.Content is Properties properties)

src/Files.App/Views/Pages/PropertiesSecurityAdvanced.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
Text="{x:Bind DialogTitle}" />
4949

5050
<ScrollViewer Grid.Row="1">
51-
<StackPanel Padding="12,0,12,12" Spacing="8">
51+
<StackPanel Padding="12,0,12,12" Spacing="4">
5252
<Grid
5353
Padding="8"
5454
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"

0 commit comments

Comments
 (0)