diff --git a/lib/minimap-element.coffee b/lib/minimap-element.coffee index a4794eca..1412a22a 100644 --- a/lib/minimap-element.coffee +++ b/lib/minimap-element.coffee @@ -302,6 +302,7 @@ class MinimapElement extends HTMLElement @requestUpdate() @setAttribute('stand-alone', true) if @minimap.isStandAlone() + @minimap.setScreenHeightAndWidth(@height, @width) if @width? and @height? @minimap @@ -416,7 +417,7 @@ class MinimapElement extends HTMLElement @width = @clientWidth canvasWidth = @width - @minimap.setScreenHeightAndWidth(@height, @width) + @minimap.setScreenHeightAndWidth(@height, @width) if @minimap? @requestForcedUpdate() if wasResized or visibilityChanged or forceUpdate