 
   applyBackground: ->
     if @packagesLoaded
-      workspaceView = qr 'atom-workspace'
+      workspaceView = @elements.workspace
       #console.log 'workspaceView',workspaceView
       if workspaceView?
         workspaceView.className += ' editor-background'

    @elements.css = cssstyle

  createBox: (depth) ->
    body = qr 'body'
    jest = qr 'body .eb-box-wrapper'
    if not jest? or jest.length==0
      left = document.createElement 'div'


  updateBgPos: ->
    conf = @configWnd.get('editor-background')
    body = @elements.body
    factor = conf.box3d.mouseFactor
    polowaX = body.clientWidth // 2
    polowaY = body.clientHeight // 2
