mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
Fixed an issue with zone sizes (#10609)
This commit is contained in:
parent
29ed73ba92
commit
bb5d4dfbf0
@ -882,9 +882,9 @@ bool ZoneSet::CalculateGridZones(Rect workArea, FancyZonesDataTypes::GridLayoutI
|
|||||||
long bottom = rowInfo[maxRow].End;
|
long bottom = rowInfo[maxRow].End;
|
||||||
|
|
||||||
top += row == 0 ? spacing : spacing / 2;
|
top += row == 0 ? spacing : spacing / 2;
|
||||||
bottom -= row == gridLayoutInfo.rows() - 1 ? spacing : spacing / 2;
|
bottom -= maxRow == gridLayoutInfo.rows() - 1 ? spacing : spacing / 2;
|
||||||
left += col == 0 ? spacing : spacing / 2;
|
left += col == 0 ? spacing : spacing / 2;
|
||||||
right -= col == gridLayoutInfo.columns() - 1 ? spacing : spacing / 2;
|
right -= maxCol == gridLayoutInfo.columns() - 1 ? spacing : spacing / 2;
|
||||||
|
|
||||||
auto zone = MakeZone(RECT{ left, top, right, bottom }, i);
|
auto zone = MakeZone(RECT{ left, top, right, bottom }, i);
|
||||||
if (zone)
|
if (zone)
|
||||||
|
Loading…
Reference in New Issue
Block a user