mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Fixed one mishandled case when computing zones (#1470)
This commit is contained in:
parent
32de0ae4a4
commit
2b91903129
@ -399,11 +399,11 @@ bool ZoneSet::CalculateColumnsAndRowsLayout(Rect workArea, JSONHelpers::ZoneSetL
|
||||
if (type == JSONHelpers::ZoneSetLayoutType::Columns)
|
||||
{
|
||||
right = left + (zone + 1) * totalWidth / zoneCount - zone * totalWidth / zoneCount;
|
||||
bottom = totalHeight - spacing;
|
||||
bottom = totalHeight + spacing;
|
||||
}
|
||||
else
|
||||
{ //Rows
|
||||
right = totalWidth - spacing;
|
||||
right = totalWidth + spacing;
|
||||
bottom = top + (zone + 1) * totalHeight / zoneCount - zone * totalHeight / zoneCount;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user