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());
				}
			});
	}

}

Reported Bug #8611 (http://dev.vaadin.com/ticket/8611)