TabLayoutPanel does not seem to manage focus correctly, whereas
TabPanel does.

This works fine - the "name" TextBox ends up with focus:

public void onModuleLoad() {
    TabPanel tabPanel = new TabPanel();
    FlowPanel panel = new FlowPanel();
    TextBox name = new TextBox();
    panel.add(name);
    tabPanel.add(panel, "Tab 1");
    RootLayoutPanel.get().add(tabPanel);
    tabPanel.selectTab(0);
    name.setFocus(true);
}

Replace the tabPanel creation line with:
  TabLayoutPanel tabPanel = new TabLayoutPanel(1.5, Style.Unit.EM);

and the "name" TextBox does not end up with focus.

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