Hi, I am trying to use a TabLayoutPanel and it seems to be working fine
when it is the first thing I put on the page, but when I do it after a
button push (for example) it is not displaying properly. For example, if I
do something like this it works fine:
TabLayoutPanel tlp = new TablLayoutPanel(2.5, Style.Unit.EM);
hp.add(btn);
tlp.add(new HTML("Tab1"), "Tab 1 title");
tlp.add(new HTML("Tab2"), "Tab 2 title");
tlp.add(new HTML("Tab3"), "Tab 3 title");
tlp.setPixelSize(500, 400);
RootLayoutPanel.get().add(tlp);
However, if I do something like the following, when I click the button all
I see displayed is "Tab1", no other tabs, no "Tab 1 title", etc.:
HorizontalPanel hp = new HorizontalPanel();
Button btn = new Button("push");
TabLayoutPanel tlp = new TablLayoutPanel(2.5, Style.Unit.EM);
hp.add(btn);
tlp.add(new HTML("Tab1"), "Tab 1 title");
tlp.add(new HTML("Tab2"), "Tab 2 title");
tlp.add(new HTML("Tab3"), "Tab 3 title");
tlp.setPixelSize(500, 400);
RootLayoutPanel.get().add(tlp);
btn.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
RootLayoutPanel.get().remove(hz);
RootLayoutPanel.get().add(tlp);
}
};
Any ideas? I read somewhere that there are problems with TabLayoutPanel in
IE8, which I'm using, but since it displays okay in the first case I doubt
that's the issue. I wanted to see what would happen with Chrome and
Firefox, but spent a couple hours struggling to install the GWT Developer
Plugin on those browsers without any luck.
Thanks in advance for any help or suggestions...
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.