Hi, I'm relatively new to GWT so I'm not sure if this is a bug or if I'm
misunderstanding something.
When I add a widget to a TabLayoutPanel, if the widget is already attached
to the TabLayoutPanel,
it should move the existing widget to the far right.
This is how I understood the javadoc which says of the add(Widget w) method:
Adds a widget to the panel. If the Widget is already attached, it will be
moved to the right-most index.
When I try this, however, I get the following error:
com.google.web.bindery.event.shared.UmbrellaException: One or more
exceptions caught, see full set in UmbrellaException#getCauses
at
com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:203)
at
com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
<snip>
Caused by: java.lang.AssertionError: beforeIndex out of bounds
at
com.google.gwt.user.client.ui.TabLayoutPanel.insert(TabLayoutPanel.java:724)
at
com.google.gwt.user.client.ui.TabLayoutPanel.insert(TabLayoutPanel.java:527)
at
com.google.gwt.user.client.ui.TabLayoutPanel.add(TabLayoutPanel.java:328)
at
com.google.gwt.user.client.ui.TabLayoutPanel.add(TabLayoutPanel.java:265)
And the existing widget (and header tab) simply disappear from the
tablayoutpanel.
I had a brief look at the code but wanted to check if this is, in fact, a
bug or I'm just doing it wrong!
Thanks
Joel
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/0XQbvAuMC2UJ.
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.