>From http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Design (scroll down to "Child Widget Visibility"):
The Layout class has to wrap each of its child elements in a "container" element in order to work properly. One implication of this is that, when you call UIObject.setVisible(boolean) on a widget within a LayoutPanel, it won't behave quite as expected: the widget will indeed be made invisible, but it will tend to consume mouse events (actually, it's the container element that is doing so). To work around this, you can get the container element directly using LayoutPanel.getWidgetContainerElement(Widget), and set its visibility directly: LayoutPanel panel = ...; Widget child; panel.add(child); UIObject.setVisible(panel.getWidgetContainerElement(child), false); Hope that helps! On Nov 18, 1:48 pm, zixzigma <[email protected]> wrote: > I tried that, but it appears although westPanel becomes hidden (as > expected setVisible(False)), > the west region still takes up space. > My guess is since in UiBinder regions must be explicitly sized, eg: > <g:west size='6'> > hiding/removing a SimplePanel within a region does not mean the region > itself is hidden//removed ? -- 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.
