I submitted this bug yesterday, however I should have posted it in
groups first to determine if I was doing something wrong.

I think this is a bug in GWT, but I'm not sure.  There when I add a
widget to a panel then add that panel to a TabPanel, calling
isVisible() on the widget always returns true, however the panel
correctly returns the visibility.

http://code.google.com/p/google-web-toolkit/issues/detail?id=4892
Here is the code:


      final TabPanel tabPanel = new TabPanel();

      final FlowPanel flowPanel = new FlowPanel();
      final Widget html = new HTML("tab1");
      flowPanel.add(html);

      final Widget htm2 = new HTML("tab2");

      tabPanel.add(flowPanel,"1");
      tabPanel.add(htm2,"2");
      tabPanel.addSelectionHandler(new SelectionHandler<Integer>() {
         @Override
         public void onSelection(SelectionEvent<Integer> event) {
            GWT.log("panel:  "+flowPanel.isVisible(), null);
            GWT.log("child:  "+html.isVisible(), null);
            GWT.log("panel2: "+htm2.isVisible(), null);

            if (flowPanel.isVisible() != html.isVisible()) {
               GWT.log("error unexpected", null);
            }
         }
      });

I am doing something wrong?

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