Additional detail on this: it looks like it's only broken in the
hosted browser; seems to work fine when I try it from FF3/Linux or IE6/
XP...

Mike

On Feb 27, 9:25 am, Mike Pontillo <[email protected]> wrote:
>    I was going to post this as a bug, but thought I'd poll the
> discussion group first. I wasn't sure if this was a TabPanel or a
> DisclosurePanel bug, or if I'm just doing something wrong.
>
>    The problem is, if I put a DisclosurePanel inside a TabPanel, it
> does not resize correctly when a width is set. Example code:
>
>   public void onModuleLoad() {
>           TabPanel tp = new TabPanel();
>           tp.setWidth("100%");
>           DisclosurePanel dp = new DisclosurePanel("Test Disclosure Panel");
>           dp.add(new Label("This is some test text"));
>
>           tp.add(dp, "Disclosure Panel Tab");
>           tp.selectTab(0);
>
>           RootPanel.get().add(tp);
>   }
>
>    Note that the first time you expand the disclosure panel, the test
> text appears below the visible area. If you click the disclosure panel
> two more times, it resizes correctly. Note that it is not always able
> to recover; in a larger application it can get so out-of-whack that
> the disclosure panel is never even visible again.
>
>    If I take out the width, it works, but it's "ugly". Am I missing a
> best practice here, or should I just not be using DisclosurePanel?
>
> Regards,
> Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to