mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[FancyZones editor] Fix CanvasRect not being initialized (#10163)
* Fix CanvasRect not being initialized * No need to use workArea height if it's set in CanvasLayoutModel
This commit is contained in:
@@ -304,7 +304,8 @@ namespace FancyZonesEditor
|
||||
}
|
||||
else
|
||||
{
|
||||
CanvasLayoutModel canvasModel = new CanvasLayoutModel(LayoutNameText.Text, LayoutType.Custom);
|
||||
var area = App.Overlay.WorkArea;
|
||||
CanvasLayoutModel canvasModel = new CanvasLayoutModel(LayoutNameText.Text, LayoutType.Custom, (int)area.Width, (int)area.Height);
|
||||
canvasModel.AddZone();
|
||||
selectedLayoutModel = canvasModel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user