Tabsheet setSelectedTab issue with scrollbar

I have a tabsheet with 6 tabs in a panel. Due to the size of the panel, the tabsheet has a scrollbar as expected. Nothing is disabled or hidden programatically.

I can successfully use the scrollbar to go through all the tabs in the tabsheet and select any tab - again as expected.

if I call setSelectedTab to select the tab 6, the content of tab 6 is selected but tab is not in view in the tab bar.

In the attached picture you can see that the content of tag “1.6” is visible but tab 1.6 is not.

I went through the API docs but couldn’t find a way to make sure that the tab on the tab bar scrolls automatically to the selected tab when setSelectedTab is called.

Am I missing something?

Thanks
Nilesh
11539.png

Autoscrolling is probably just not implemented into the tabsheet. Please create a ticket of the enhancement at
dev.vaadin.com

Actually that would be http://dev.vaadin.com/ticket/3899 (TabSheet should scroll to selected tab)

Thank you for quick response. I will watch status of ticket 3899.

Just one more thing - there is no way to programatically scroll the tab bar, is there?

  • Nilesh

nope.

Thanks for the follow up. I’ll keep checking the status of the open ticket…