TabSheet: tabitemcell-first bug??

Hi All,

I have a little problem with my tabsheet. It appears that on first load or page refresh, the first tab in the tab sheet isn’t maked with ‘v-tabsheet-tabitemcell-first’.
Once you have selected a different tab and then reselected the first tab, only then does the css class applied.

i.e. On first load:

<td class="v-tabsheet-tabitemcell">
<div class="v-tabsheet-tabitem">
<div class="v-caption" style="width: 30px;">
<div class="v-captiontext">First</div>
<div class="v-caption-clearelem"></div>
</div>
</div>
</td>

after a bit of clicking…

<td class="v-tabsheet-tabitemcell v-tabsheet-tabitemcell-first">
<div class="v-tabsheet-tabitem">
<div class="v-caption" style="width: 30px;">
<div class="v-captiontext">First</div>
<div class="v-caption-clearelem"></div>
</div>
</div>
</td>

I’ve had this in 6.7.1 and 6.7.2 (and 12/11/11’s nightly.)

Any ideas??

Cheers,

Stuart.

I just tried with 6.7.1 and 6.7.2 on my project as well as with the
sampler tabsheets
and I get those classes on page load :

class="v-tabsheet-tabitemcell v-tabsheet-tabitemcell-first v-tabsheet-tabitemcell-selected v-tabsheet-tabitemcell-selected-first"

I tried with chrome, which browser are you using ?
Did you try recompiling the widgetset ?, run with ?debug and look in the console if there is no warning.

Hummm… I wonder if it’s because I’m setting the second tab to be selected before they are drawn…

I’m using firefox. I’ve tried compiling the widgetset. I’ll check out the console…

Cheers.

Hi Stuart,

I am noticing the same weird behavior since 6.7.0 release.

As you indicated, the problem is apparently related to index of initially selected tab. In scenarios where 2nd or further tab is being pre-selected initially, 1st tab does not seem to obtain "
v-tabsheet-tabitemcell-first
" style. Item is therefore not being rendered properly (missing left most border for instance, depends on actual css) as a result.

Reproducible on all browsers I’ve tried - FF, IE, Chrome.


Here we go, first tab item nowhere to be seen:

I guess this one is candidate for bug report.

Yes, please
create a bug report
about this.

I gladly did. Tadaa
ticket 8114
:smug: