From aca9d73c47540c5fa6a205bbd5cba45101fc0d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Wed, 18 Oct 2017 09:20:35 +0200 Subject: [PATCH] Actually scale the minimap background instead of setting size --- minimap.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/minimap.js b/minimap.js index 6cec271..a76ed02 100644 --- a/minimap.js +++ b/minimap.js @@ -352,8 +352,9 @@ MultiMap = new Lang.Class({ chrome.set_size(wrapper.width + 2*4, wrapper.height + 4); chrome.set_position(-4, -4); chrome.set_style('border: 4px #454f52; border-radius: 6px;'); - background.first_child.width = wrapper.width; - background.first_child.height = wrapper.height; + let backgroundScaleX = wrapper.width/background.width; + let backgroundScaleY = wrapper.height/background.height; + background.set_scale(backgroundScaleX, backgroundScaleY); minimap.actor.set_position(10, 8); this.minimaps.push(minimap); },