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()