       $('#thangs-list').height(oldHeight - thangsHeaderHeight - 40)
     else
       $('#thangs-list').height(oldHeight - thangsHeaderHeight - 80)
-      
+
 
   afterRender: ->
     super()


  onDuplicateClicked: (e) ->
    $('#contextmenu').hide()
    if !@addThangType
      thang = @selectedExtantThang.spriteName
      e.target = $(".add-thang-palette-icon[data-thang-type='" + thang + "']").get 0
    @selectAddThang e
    
  toggleThangsContainer: (e) ->
    $('#all-thangs').toggle()
    
  toggleThangsPalette: (e) ->
    $('#add-thangs-column').toggle()
    @onWindowResize e
   

class ThangsNode extends TreemaNode.nodeMap.array
  valueClass: 'treema-array-replacement'

    @level = options.level

    $(document).bind 'contextmenu', @preventDefaultContextMenu

  getRenderData: (context={}) ->
    context = super(context)
    return context unless @supermodel.finished()
