First tab isn't being resized

Hi,

I’ve created a tabbar and managed to find the appropriate parameter to have the tabs resized whenever they are selected.

However, the selected tab isn’t being resized on first display, only when I go back to it after I have moved to another tab.

These are the div statements I’m using:

Could you tell me how I can get the selected tab to be auto-resized without having to move off it first?

Debbie

Hi,

please provide a demo that demonstrates the problem

Hi Alexandra,

I’ve attached some screenshots to demonstrate what the first tab does on initial display and after moving to another tab, then back to the first one again.

As you can see, the first tab is larger in height initially, compared to when I come back from another tab, when it resizes correctly to the size of the internal data, which is what I would like it to do on the initial display as well.

I’m creating the tabs via HTML, rather than by code, so I would like to know whether there is a solution to this without using javascript.
tab-resizing-demo.zip (96.4 KB)

Hi,

autosize should be enabled before initialization- onbeforeinit attribute instead of oninit:

Hi,

Aahaaaa! So that’s how it works. Yes, it works now. Thank you.

Debbie