Skip to content

Commit

Permalink
🐛 Prevent any measuring when there's no minimap model
Browse files Browse the repository at this point in the history
Fixes #376
  • Loading branch information
abe33 committed Aug 27, 2015
1 parent ca53973 commit 892b7aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/minimap-element.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ class MinimapElement extends HTMLElement
# forceUpdate - A {Boolean} that forces the update even when no changes were
# detected.
measureHeightAndWidth: (visibilityChanged, forceUpdate=true) ->
return unless @minimap?

wasResized = @width isnt @clientWidth or @height isnt @clientHeight

@height = @clientHeight
Expand Down

0 comments on commit 892b7aa

Please sign in to comment.