 
     @meltElement.appendChild @gutter
 
-  hook 'resize', 0, ->
+  Editor::resizeGutter = ->
     @gutter.style.width = @aceEditor.renderer.$gutterLayer.gutterWidth + 'px'
+    @gutter.style.height = "#{Math.max @meltElement.offsetHeight, @view.getViewNodeFor(@tree).totalBounds?.height ? 0}px"
+
 
   Editor::addLineNumberForLine = (line) ->
     treeView = @view.getViewNodeFor @tree

      @mainCanvas.opacity = @paletteWrapper.opacity =
        @highlightCanvas.opacity = 1

      @resize(); @redrawMain()

    else
      oldScrollTop = @aceEditor.session.getScrollTop()


    @meltElement.appendChild @cursorCanvas

  Editor::resizeCursorCanvas = ->
    @cursorCanvas.width = @meltElement.offsetWidth
    @cursorCanvas.style.width = "#{@cursorCanvas.width}px"

