Hi Chris, it is not really clear to me. Did you switched of the added child, or the layer (div) containing the added child. The first is not suffient and will leave the layer (div).
I think, the correct method to get the layer div of any child widgets is getWidgetContainerElement. Call this and set the visibiltity Stefan Bachert http://gwtworld.de On Jun 9, 11:28 pm, Chris <christopher.burr...@gmail.com> wrote: > Hi there > > I'm trying to hide a layer in my LayoutPanel. The idea is to have a > layer act a bit like a popup, but it's not really a popup, and it > makes it easier if it is a layer. > > I'm trying to hide it, so I toggle the layer child (a simplePanel)'s > visibility property on/off, which seems to work fine, but it leaves a > div element (from the layer I suppose), which means I can't click > through to the elements behind it... When I look at the DOM, I get a > <div> with all the properties from my layer, and then the <div> inside > that is the SimplePanel I'm using. > > Any ideas? I guess i could just ask for the widget's parent? But that > seems hacky. Am I doing something wrong? > > Chris -- 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-tool...@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.