Hi,

I've figured out that you need to remove the RootLayoutPanel from the
RootPanel.  You can do this with
RootPanel.get().remove(RootLayoutPanel.get()), or
RootLayoutPanel.get().removeFromParent().

Note that this means that the singlton RootLayoutPanel returned from
RootLayoutPanel.get() will no longer function as it does not get
reattached.  You can work around this by reattaching it to RootPanel
with RootPanel.add(RootLayoutPanel.get());

It would be better if RootLayoutPanel.get() always ensured that it was
attached to RootPanel.get() before returning.  It is also nto very
obvious to a newbie (like me) that simply having RootLayoutPanel
attached will block clicking on anything attached to the RootPanel.
While it is perhaps uncommon for this to occur simply by calling
RootLayoutPanel.get(), a moer common scenario would be adding a
LayoutPanel to the RootLayoutPanel and then removing it.  This leaves
the RootLayoutPanel still attached, bu the underlying RootPanel
inactive.  Wouldn't it be a good idea to automatically detach the
RootLayoutPanel if all of it's children are detached?

Cheers
Kerr

On Apr 15, 2:48 pm, kerrr <[email protected]> wrote:
> I'm having a similar issue.  I have widgets added to elements using
> RootLayout.get("foo").add(widget) but then want to add a Panel on top
> usingRootLayoutPanel.get().add(layout).  that's all fine, but
> removign the LayoutPanel leaves somethign behind that means the
> widgets on the page cannot be clicked.  Looking at the generated there
> is an extra div left behind.  Is this a bug or am I missing
> something?  I'm not keen on raiseing a bug if this is simply a case of
> me missunderstanding something.
>
> Cheers
> Kerr
>
> On Apr 14, 12:09 pm, "gadaleta.marco" <[email protected]>
> wrote:
>
> > Hi,
> > I'm trying to switch diinamically RootPanel withRootLayoutPaneland
> > viceversa.
> > But after the switch, the interface seems to be locked.
> > Can you give me an help?
>
> > Thx,
> > Marco

-- 
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