Skip to content

Commit 1afe863

Browse files
0x5bfayaira2
authored andcommitted
Req
1 parent bd14ff2 commit 1afe863

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Files.App/Views/MainPage.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@
467467
<Setter Target="InfoPaneSizer.(Grid.Column)" Value="1" />
468468
<Setter Target="InfoPaneSizer.Width" Value="2" />
469469
<Setter Target="InfoPaneSizer.GripperCursor" Value="SizeWestEast" />
470-
<Setter Target="InfoPaneColumnDefinition.Width" Value="{x:Bind UserSettingsService.InfoPaneSettingsService.VerticalSizePx, Mode=OneWay}" />
471470
<Setter Target="InfoPaneColumnDefinition.MinWidth" Value="{x:Bind InfoPane.MinWidth, Mode=OneWay}" />
472471
<Setter Target="InfoPaneRowDefinition.MinHeight" Value="0" />
473472
<Setter Target="InfoPaneRowDefinition.Height" Value="0" />
@@ -484,7 +483,6 @@
484483
<Setter Target="InfoPaneColumnDefinition.Width" Value="0" />
485484
<Setter Target="InfoPaneColumnDefinition.MinWidth" Value="0" />
486485
<Setter Target="InfoPaneRowDefinition.MinHeight" Value="{x:Bind InfoPane.MinHeight, Mode=OneWay}" />
487-
<Setter Target="InfoPaneRowDefinition.Height" Value="{x:Bind UserSettingsService.InfoPaneSettingsService.HorizontalSizePx, Mode=OneWay}" />
488486
</VisualState.Setters>
489487
</VisualState>
490488
</VisualStateGroup>

src/Files.App/Views/MainPage.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,12 @@ private void UpdatePositioning()
351351
break;
352352
case PreviewPanePositions.Right:
353353
InfoPaneSizer.ChangeCursor(InputSystemCursor.Create(InputSystemCursorShape.SizeWestEast));
354+
InfoPaneColumnDefinition.Width = new(UserSettingsService.InfoPaneSettingsService.VerticalSizePx);
354355
VisualStateManager.GoToState(this, "InfoPanePositionRight", true);
355356
break;
356357
case PreviewPanePositions.Bottom:
357358
InfoPaneSizer.ChangeCursor(InputSystemCursor.Create(InputSystemCursorShape.SizeNorthSouth));
359+
InfoPaneRowDefinition.Height = new(UserSettingsService.InfoPaneSettingsService.HorizontalSizePx);
358360
VisualStateManager.GoToState(this, "InfoPanePositionBottom", true);
359361
break;
360362
}

0 commit comments

Comments
 (0)