From 2b91903129a5b968dad4d97d4dba335e8aadd706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Sto=C5=A1i=C4=87?= Date: Thu, 5 Mar 2020 21:51:58 +0100 Subject: [PATCH] Fixed one mishandled case when computing zones (#1470) --- src/modules/fancyzones/lib/ZoneSet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/fancyzones/lib/ZoneSet.cpp b/src/modules/fancyzones/lib/ZoneSet.cpp index 9a59fe5b55..806d71106a 100644 --- a/src/modules/fancyzones/lib/ZoneSet.cpp +++ b/src/modules/fancyzones/lib/ZoneSet.cpp @@ -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; }