   setLayout: ->
     @layout = @body.layout
       livePaneResizing: true
+      onresize: =>
+        @setSizes()
       west:
         size: '20%'
         slidable: false

            slidable: false

  setSizes: ->
    window.setTimeout (->
      editor = $ '.editor'
      frame = editor.parent()
      tabs = $ '.tabs'
      toolbar = $ '.toolbar'
      editor.width frame.innerWidth()
      editor.height frame.innerHeight() - tabs.outerHeight() - toolbar.outerHeight()
    ), 1

  loadSidebar: ->
    @socket.emit 'get_tree', null, (tree) =>


    @session.setUseSoftTabs true
    @session.setTabSize 2
    @session.setUseWrapMode true

    @displayName = ko.computed =>
      object = @object()
