![]() | ||||||||||
| ||||||||||
Positioning of tab control is done automatically as any HTML element in the browser, except old one. For old browsers relative positioning for layers is absent, so position must be define as TabDef.x and TabDef.y properties. Positioning tabs within tab control defines by offset and spacing properties. Fisrt tab is located with offset TabDef.offset relative to container position, second one with offset TabDef.spacing relative to fisrt tab, third one with offset TabDef.spacing relative to second tab and etc. var tabDef = { "x" : 10, "y" : 50, "offset" : 3, "spacing" : 5, ... } Direction of offset (horisonal or vertical) depend on layout property. If layout is top or bottom offset is horisontal, if layout is left or right offset is vertical.
You can see an example and complete code here - Tab Positioning Example [popup] Read more about CodeThatTab >>
|