I use SmartGWT 4.1p Power Edition
I'm now using the ResizeBar by
So I want to use ResizeBar in widget1 to control the resize of widget2. And following is the behavior that I want
- double click resize bar in widget1 and height of widget2 = 0px or 60px
- disable drag so that the height of widget2 can only be 0px or 60px, use cannot drag and drop to change the height of widget2
But I find that I cannot disable the drag and design behavior.
Do anyone try this? How can I do?
I'm now using the ResizeBar by
Code:
VLayout widget1 = new VLayout()
widget1.setWidth100();
widget1.setHeight(1);
widget1.setShowResizeBar(true);
widget1.setResizeBarTarget("next");
mainLayout.addMember(widget1);
VLayout widget2 = new VLayout ();
mainLayout.addMember(widget2);- double click resize bar in widget1 and height of widget2 = 0px or 60px
- disable drag so that the height of widget2 can only be 0px or 60px, use cannot drag and drop to change the height of widget2
But I find that I cannot disable the drag and design behavior.
Do anyone try this? How can I do?