Fixed one mishandled case when computing zones (#1470)

This commit is contained in:
Ivan Stošić 2020-03-05 21:51:58 +01:00 committed by GitHub
parent 32de0ae4a4
commit 2b91903129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}