quinquin2209 wrote:
Thanks for reply
Yes. The content of the tab remains, just the scrollbar appears/disappears.
I have tried an experiment in the tabbed panel example in struts2-showcase
as follow:
1. Open file example2.jsp located at
struts2-showcase-2.0.11\ajax\tabbedpanel
2. Edit the tab content of tab with label "test1" such that it exceeds panel
size
3. Run tomcat and visit that page. You will find that tab "test1" has scroll
bar shown correctly
4. Click on tab header "test1". You will find the scroll bar disappear. Only
the content remains
5. Click on tab header "test1" again. The scroll bar re-appear.
This problem also occurs if you switch from one tab to another tab.
Queenie
Hi Queenie,
I have a recollection of seeing this before and I think you're right
there's a bug there.
The way I've worked around it is to control the scrollbars myself. That
is, setup the tabbed panel with a fixed width and height (doLayout=true
and cssStyle) and place
a div as the first child inside each tabbed panel with css width, height
and overflow attributes that suit your application. Ie. your inner div
rather than the tabbed panel has scrollbars.
I have a faint recollection that you'll have to do some tweaks to
overcome some browser incompatibilities regarding the width of
scrollbars too. Anyway, this is what I do for tabs that require
scollbars and it works fine.
If there is a bug its likely to be in dojo and unlikely to be fixed in
0.40/0.43. You may be able to search their archives for more
information. It may be possible to listen for events from the widget
when a tab is clicked/focus changes and change the behaviour but I'm
just guessing now.
Hope that helps,
regards,
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]