     layoutResult = @view.getViewNodeFor(@tree).layout 0, @nubbyHeight
     @view.getViewNodeFor(@tree).draw rect, options
 
+    for el, i in @currentlyDrawnFloatingBlocks
+      unless el.record in @floatingBlocks
+        el.record.grayBoxPath.destroy()
+        el.record.startText.destroy()
+        el.record.endText.destroy()
+
+    @currentlyDrawnFloatingBlocks = []
+
     # Draw floating blocks
     startWidth = @mode.startComment.length * @fontWidth
     endWidth = @mode.endComment.length * @fontWidth
     for record in @floatingBlocks
-      @drawFloatingBlock(record, startWidth, endWidth, rect, opts)
+      element = @drawFloatingBlock(record, startWidth, endWidth, rect, opts)
+      @currentlyDrawnFloatingBlocks.push {
+        record: record
+      }
 
     # Draw the cursor (if exists, and is inserted)
     @redrawCursors(); @redrawHighlights()


  record.grayBoxPath.update() #draw @mainCtx
  record.grayBoxPath.focus()
  ### TODO
  @mainCtx.fillStyle = '#000'
  @mainCtx.fillText(@mode.startComment, blockView.totalBounds.x - startWidth,
    blockView.totalBounds.y + blockView.distanceToBase[0].above - @fontSize)
  @mainCtx.fillText(@mode.endComment, record.grayBox.right() - endWidth - 5, bottomTextPosition)
  ###

  blockView.draw rect, {
    grayscale: false

        fillColor: GRAY_BLOCK_COLOR
        strokeColor: GRAY_BLOCK_BORDER
        lineWidth: 4
        dotted: '8 5'
        cssClass: 'droplet-floating-container'
      }
    )
