Fix difference in editor and applied focus layout zones size and increments (#5601)

This commit is contained in:
stefansjfw
2020-08-06 16:41:15 +02:00
committed by GitHub
parent 1d8ca28152
commit f50a8e5252
2 changed files with 8 additions and 6 deletions

View File

@@ -293,6 +293,8 @@ namespace FancyZonesEditor
ZoneCount = 3;
}
// If changing focus layout zones size and/or increment,
// same change should be applied in ZoneSet.cpp (ZoneSet::CalculateFocusLayout)
Int32Rect focusZoneRect = new Int32Rect(100, 100, (int)(WorkArea.Width * 0.4), (int)(WorkArea.Height * 0.4));
int focusRectXIncrement = (ZoneCount <= 1) ? 0 : 50;
int focusRectYIncrement = (ZoneCount <= 1) ? 0 : 50;