Hi,
actually this should work
class MyDockLayoutPanel extends DockLayoutPanel {
public MyDockLayoutPanel(Unit unit) {
super(unit);
}
public void resizeWidget(Widget w, double newSize) {
//XXX ensure it is a widget added to this this layoutpanel
LayoutData ld = (LayoutData) w.getLayoutData();
ld.size = newSize;
forceLayout();
}
}
use newSize=0 to hide.
I remember I used somewhere a similar code but i never really found why LayoutData has been left protected in DockLayoutPanel
and if this approach has to be avoided.
Ciao.