      @elems.pageBackgrounds = elem
 
     setPages: (H, W) ->
-     #@setFills()
-     #return
+     return if not @_sidebarAligned()
      @pageHeight = H
      @mainNodes = @getMainNodes()
      @sidenoteMap =  @getSidenoteMap()

     else
      throw new Error "Unknown type #{node.type} - #{node.level}"

    getBreakCost: (node) ->
     parent = node.parent()
     cost = 0



    setFills: ->
     return if not @_sidebarAligned()
     for sidenote in @sidenotes
      elemSidenote = sidenote.elem
      elemContent = @map.nodes[sidenote.link].elem
