I was just about to tell you I couldn't reproduce it - glad you got it pinned down. Ian
http://examples.roughian.com 2009/9/15 davis <davisf...@zenoconsulting.biz> > > Nevermind -- appears to be CSS related. Commenting out the use of a > particular CSS file makes the problem go away. > > On Sep 14, 8:03 pm, davis <davisf...@zenoconsulting.biz> wrote: > > Hi Ian, here's a simple example that demonstrates the problem. The > > expected result is that I would see the corresponding Label when a tab > > is selected but I do not, because the style is set to DISPLAY: none > > even when the tab is selected. I don't see the same behavior in > > FireFox. > > > > @Override > > public void onModuleLoad() { > > > > VerticalPanel main = new VerticalPanel(); > > final DialogBox dialog = new DialogBox(); > > > > VerticalPanel vPanel = new VerticalPanel(); > > vPanel.setSize("400px", "400px"); > > TabPanel tabPanel = new TabPanel(); > > tabPanel.add(new Label("This is tab one"), "Tab1"); > > tabPanel.add(new Label("This is tab two"), "Tab2"); > > tabPanel.selectTab(0); > > > > vPanel.add(tabPanel); > > Button close = new Button("Close"); > > close.addClickHandler(new ClickHandler() { > > @Override > > public void onClick(ClickEvent arg0) { > > dialog.hide(); > > }}); > > vPanel.add(close); > > dialog.add(vPanel); > > > > Button show = new Button("Click Me"); > > show.addClickHandler(new ClickHandler(){ > > @Override > > public void onClick(ClickEvent arg0) { > > dialog.show(); > > }}); > > > > main.add(show); > > > > RootPanel.get().add(main); > > } > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---