Saturday, July 31, 2010

how to call forcelayout() in a tablayout panel

Because of the problems that have been noticed in
http://code.google.com/p/google-web-toolkit/issues/detail?id=4694

I am trying to use the forcelayout function, in a tablayout panel, but
without any success. Here is my code:
myTabPanel.addSelectionHandler(new SelectionHandler<Integer>() {

@Override
public void onSelection(SelectionEvent<Integer> e) {
LayoutPanel tempLayoutPanel = (LayoutPanel)
myTabPanel.getWidget(e.getSelectedItem());
tempLayoutPanel.forceLayout();
}
});

What I am doing wrong here?

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment