 
   Editor::determineCursorPosition = ->
     if @cursor? and @cursor.parent?
-      @view.getViewNodeFor(@tree).layout 0, TOP_TAB_HEIGHT
+      @view.getViewNodeFor(@tree).layout 0, @nubbyHeight
 
       head = @cursor; line = 0
       until head is @cursor.parent.start

        treeView.bounds[line].height
      ]

      treeView.layout 0, TOP_TAB_HEIGHT

      newp = deepCopy [
        treeView.glue[line - 1],

    else
      @mainCtx.clearRect @scrollOffsets.main.x, @scrollOffsets.main.y, @mainCanvas.width, @mainCanvas.height

  Editor::setTopNubbyStyle = (height = 10, color = '#EBEBEB') ->
    @nubbyHeight = Math.max(0, height); @nubbyColor = color

    @topNubbyPath = new @draw.Path()
