diff --git a/lib/minimap-element.coffee b/lib/minimap-element.coffee index 1412a22a..3e4e56e8 100644 --- a/lib/minimap-element.coffee +++ b/lib/minimap-element.coffee @@ -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