From 2ffa507c091fa2578d60e270df2ba34ec3c68dc8 Mon Sep 17 00:00:00 2001 From: abe33 Date: Mon, 2 Feb 2015 00:42:39 +0100 Subject: [PATCH] :bug: Fix controls and scroll indicator position When the canvas is bigger than the visible minimap, the controls were offscreen. --- lib/minimap-element.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/minimap-element.coffee b/lib/minimap-element.coffee index 09850ceb..17b530d8 100644 --- a/lib/minimap-element.coffee +++ b/lib/minimap-element.coffee @@ -264,7 +264,7 @@ class MinimapElement extends HTMLElement transform: @makeTranslate(visibleAreaLeft, visibleAreaTop) @applyStyles @controls, - width: @canvas.width + 'px' + width: Math.min(@canvas.width, @width) + 'px' canvasTop = @minimap.getFirstVisibleScreenRow() * @minimap.getLineHeight() - @minimap.getScrollTop()