Skip to content

Commit

Permalink
🐛 Fix controls and scroll indicator position
Browse files Browse the repository at this point in the history
When the canvas is bigger than the visible minimap, the controls were
offscreen.
  • Loading branch information
abe33 committed Feb 1, 2015
1 parent 9bae9f8 commit 2ffa507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minimap-element.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 2ffa507

Please sign in to comment.