Sencha Premium Member
Sizing 2.2.x components with a 3.x container?
I'm attempting to layout 2.2.x components using 3.x containers. This article implies that this should be possible by wrapping the 2.2.x components with a GXT 3 WidgetComponent:<br><br><a data-cke-saved-href="http://www.sencha.com/learn/running-ext-gwt-2-and-3-together/" href="http://www.sencha.com/learn/running-ext-gwt-2-and-3-together/">http://www.sencha.com/learn/running-ext-gwt-2-and-3-together/</a><br><br>While this works for simple cases, if a child widget is wrapped in a WidgetComponent more than once, an exception is thrown by Widget.removeFromParent() because WidgetComponent doesn't implement HasWidgets. The same thing would happen if you instantiated more than one GWT or GXT Composite type using the same widget instance.<br><br>This isn't a problem with GXT 2.2.x's WidgetComponent, since it invokes ComponentHelper.removeFromParent(), which explicitly checks if the parent type is a WidgetComponent.<br><br>Is there a way to work around this issue, or is it an oversight that needs to be fixed?<br><br><a href="http://www.sencha.com/learn/running-ext-gwt-2-and-3-together/"><br></a>