mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
[FancyZones] Custom canvas layouts scaling (#3644)
* Make canvas layout scaling sensitive * Revert "Make canvas layout scaling sensitive" This reverts commit705dab7e36. * Revert "Revert "Make canvas layout scaling sensitive"" This reverts commitb9dd27644c. * Cleanup * Minor refactoring * Address PR comments
This commit is contained in:
@@ -106,8 +106,8 @@ namespace FancyZonesEditor
|
||||
|
||||
int spacing = settings.ShowSpacing ? settings.Spacing : 0;
|
||||
|
||||
int width = (int)settings.WorkArea.Width;
|
||||
int height = (int)settings.WorkArea.Height;
|
||||
int width = (int)Settings.WorkArea.Width;
|
||||
int height = (int)Settings.WorkArea.Height;
|
||||
|
||||
double totalWidth = width - (spacing * (cols + 1));
|
||||
double totalHeight = height - (spacing * (rows + 1));
|
||||
@@ -265,8 +265,8 @@ namespace FancyZonesEditor
|
||||
Body.Children.Add(viewbox);
|
||||
Canvas frame = new Canvas
|
||||
{
|
||||
Width = canvas.ReferenceWidth,
|
||||
Height = canvas.ReferenceHeight,
|
||||
Width = Settings.WorkArea.Width,
|
||||
Height = Settings.WorkArea.Height,
|
||||
};
|
||||
viewbox.Child = frame;
|
||||
foreach (Int32Rect zone in canvas.Zones)
|
||||
|
||||
Reference in New Issue
Block a user