diff --git a/js/ui/workspace.js b/js/ui/workspace.js index ba632153b..c7021fe5a 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -463,9 +463,9 @@ var WorkspaceLayout = GObject.registerClass({ const [topOversize, bottomOversize] = window.chromeHeights(); const [leftOversize, rightOversize] = window.chromeWidths(); - if (rowSpacing) + if (rowSpacing !== null) rowSpacing += topOversize + bottomOversize; - if (colSpacing) + if (colSpacing !== null) colSpacing += Math.max(leftOversize, rightOversize); if (containerBox) {