From 90d476b3b0cfd39897dc9dde02aa9717003b0dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Thu, 5 Oct 2017 16:26:35 +0200 Subject: [PATCH] Size the minimaps in whole pixels This fixes the multimap viewport alignment issue for the last workspaces. --- minimap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minimap.js b/minimap.js index 8dddb8d..7a89935 100644 --- a/minimap.js +++ b/minimap.js @@ -229,8 +229,8 @@ MultiMap = function() { s.minimap.visible = true; s.minimap.refresh(); s.minimap.fold(undefined, false); - wrapper.width = s.minimap.width * s.minimap.scale_x; - wrapper.height = s.minimap.height * s.minimap.scale_y; + wrapper.width = Math.ceil(s.minimap.width * s.minimap.scale_x); + wrapper.height = Math.ceil(s.minimap.height * s.minimap.scale_y); minimaps.push(s.minimap); }) let rowHeight = multimap.first_child.height;