mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
few more fixes
This commit is contained in:
@@ -15,6 +15,7 @@ namespace FancyZonesEditor
|
||||
public partial class EditorOverlay : Window
|
||||
{
|
||||
public static EditorOverlay Current { get; set; }
|
||||
|
||||
private readonly Settings _settings = ((App)Application.Current).ZoneSettings;
|
||||
private LayoutPreview _layoutPreview;
|
||||
private UserControl _editor;
|
||||
|
||||
@@ -470,9 +470,10 @@ namespace FancyZonesEditor
|
||||
{
|
||||
Orientation = orientation,
|
||||
Index = index,
|
||||
Model = Model
|
||||
Model = Model,
|
||||
};
|
||||
resizer.DragDelta += Resizer_DragDelta;
|
||||
|
||||
if (orientation == Orientation.Vertical)
|
||||
{
|
||||
index += Model.Rows - 1;
|
||||
@@ -491,6 +492,7 @@ namespace FancyZonesEditor
|
||||
}
|
||||
|
||||
freeZones.Add(index);
|
||||
|
||||
GridZone zone = (GridZone)Preview.Children[index];
|
||||
zone.Visibility = Visibility.Hidden;
|
||||
zone.MinHeight = 0;
|
||||
|
||||
@@ -36,8 +36,6 @@ namespace FancyZonesEditor
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void DecrementZones_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (_settings.ZoneCount > 1)
|
||||
|
||||
Reference in New Issue
Block a user