Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Possible bug in TabSheet style
Hi,
I've meet a small problem when trying to style a TabSheet, the style is applied but after changing visibility of the tabsheet, the specific style won't be seen until the page is manually reloaded.
Here is a small part of the code to reproduce this, if anyone has an idea on how to fix this, I'm interested.
Thanks,
Oliv
public class TesttabsApplication extends Application
{
private TabSheet ts;
@Override
public void init()
{
Window mainWindow = new Window("Testtabs Application");
setMainWindow(mainWindow);
ts = new TabSheet();
ts.setStyleName(Reindeer.TABSHEET_MINIMAL);
ts.setSizeFull();
mainWindow.addComponent(ts);
ts.addTab(new Label("page1"), "Page 1");
ts.addTab(new Label("page 2"), "Page 2");
Button but = new Button("switch visibility");
mainWindow.addComponent(but);
but.addListener(new ClickListener()
{
public void buttonClick(ClickEvent event)
{
ts.setVisible(!ts.isVisible());
}
});
}
}
Last updated on
Reported Bug #8611 (http://dev.vaadin.com/ticket/8611)
Last updated on Apr, 11th 2012
You cannot reply to this thread.