 				type: "viewport-resize"
 				call: =>
 					@__checkOverflowButton()
-					@__setActiveMarker()
 
 			CUI.util.assert( CUI.dom.isInDOM(@getLayout().DOM),"Tabs getting DOM insert event without being in DOM." )
 			@__checkOverflowButton()
-			@__setActiveMarker()
 
 		@addClass("cui-tabs")
 

			CUI.dom.removeClass(@__pane_header.DOM, "cui-tabs-pane-header--overflow")
		@

	__setActiveMarker: ->
		btn = @getActiveTab()?.getButton().DOM

		if not btn
			CUI.dom.hideElement(@__tabs_marker)
			return

		CUI.dom.showElement(@__tabs_marker)
		btn_dim = CUI.dom.getDimensions(btn)
		CUI.dom.setStyle @__tabs_marker,
			left: btn_dim.offsetLeft
			width: btn_dim.borderBoxWidth
		@

	init: ->
		super()
		# slider to mark active tab
		@__tabs_marker = CUI.dom.element("DIV", class: "cui-tabs-active-marker")

		@__tabs_bodies = new CUI.Template
			name: "tabs-bodies"

		pane_key = "center"

		@__pane_header.append(@__buttonbar, pane_key)

		@__header = @__pane_header[pane_key]()

