     @dragCanvas.style.top = '0px'
     @dragCanvas.style.transform = 'translate(-9999px,-9999px)'
 
-    @draw = new draw.Draw(@mainCtx)
+    @draw = new draw.Draw(@mainCanvas)
 
     @dropletElement.style.left = @paletteWrapper.clientWidth + 'px'
 


  # TODO maybe refactor into qualifiedFocus
  if i < @session.floatingBlocks.length
    @mainCtx.insertBefore record.renderGroup.element, @session.floatingBlocks[i].renderGroup.element
  else
    @mainCtx.appendChild record.renderGroup

Editor::drawFloatingBlock = (record, startWidth, endWidth, rect, opts) ->
  blockView = @session.view.getViewNodeFor record.block

      " #{@session.view.opts.tabOffset + @session.view.opts.tabWidth - CURSOR_WIDTH_DECREASE / 2} 0"

  @cursorPath = new @session.view.draw.ElementWrapper(cursorElement)
  @cursorPath.setParent @mainCanvas

  @mainCanvas.appendChild @cursorCtx

