 
 			@__hiddenHeaders.push(hideHeader)
 
-			slot.node.style.top = top+"px"
-			top += slot.dimInControl.marginBoxHeight
+			nodeCloned.style.top = "#{top}px"
+			dimInControl = CUI.dom.getDimensions(nodeCloned)
+			top += dimInControl.marginBoxHeight
 
 		CUI.dom.setStyle(@__control,
 			height: top


	initNewStickyHeaders: ->
		measure_headers = []
		for nsh in @newStickyHeaders
			dom = nsh.DOM

			header =
				stickyHeader: nsh
				level: nsh.getLevel()
				node: dom.cloneNode(true)

			@headers.push(header)

			measure_headers.push(header)
			header.node.style.visiblity = "hidden"
			CUI.dom.prepend(@__control, header.node)

		@newStickyHeaders.splice(0)

		for header in measure_headers
			header.dimInControl = CUI.dom.getDimensions(header.node)
			@__control.removeChild(header.node)
			header.node.style.visiblity = ""
		@

	destroy: ->

			if slot == null
				break

			nodeCloned = slot.node.cloneNode(true)
			CUI.dom.prepend(@__control, nodeCloned)

			if cut < 0 and slot.level == next_header.level
				top += cut
