Skip to content

Commit fcfa599

Browse files
Fix: Fixed issue where new tab icon disappears when window is smaller than 640px (#11818)
1 parent bdad62d commit fcfa599

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Files.App/Views/MainPage.xaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,6 @@
358358
<Setter Target="SidebarControl.PaneDisplayMode" Value="LeftMinimal" />
359359
<Setter Target="SidebarControl.IsPaneToggleButtonVisible" Value="True" />
360360
<Setter Target="TabControl.Margin" Value="48,0,0,0" />
361-
362-
<!-- Update the button size to match the pane toggle button size -->
363-
<Setter Target="HorizontalMultitaskingControlAddButton.Visibility" Value="Collapsed" />
364361
</VisualState.Setters>
365362
</VisualState>
366363
</VisualStateGroup>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void HorizontalMultitaskingControl_Loaded(object sender, RoutedEventArgs
142142
private void SetRectDragRegion()
143143
{
144144
DragZoneHelper.SetDragZones(App.Window,
145-
dragZoneLeftIndent: (int)(TabControl.ActualWidth - TabControl.DragArea.ActualWidth));
145+
dragZoneLeftIndent: (int)(TabControl.ActualWidth + TabControl.Margin.Left - TabControl.DragArea.ActualWidth));
146146
}
147147

148148
public void TabItemContent_ContentChanged(object? sender, TabItemArguments e)

0 commit comments

Comments
 (0)