 						CUI.dom.setStyle(@__tabs[0].DOM, marginLeft: -100*CUI.util.idxInArray(tab, @__tabs)+"%")
 
 					@__active_tab = tab
-					@__setActiveMarker()
 
 					CUI.dom.setAttribute(@DOM, "active-tab-idx", CUI.util.idxInArray(tab, @__tabs))
 					@_onActivate?(@, tab)

				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")


		pane_key = "center"

		@__pane_header.append(@__buttonbar, pane_key)

		@__header = @__pane_header[pane_key]()

