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