Hi,
we use smartgwt 2.5 and i have following showcase:
The problem is that after clicking on layout2 the child2 cannot be drag-resized anymore(Maybe you need to drag-resize it first). The click-to-collapse behavior is ok. Is this a bug or are we doing this improper way?
Thanks
we use smartgwt 2.5 and i have following showcase:
Code:
public class SmartGwtTest implements EntryPoint { public void onModuleLoad() { HLayout layout1 = new HLayout(); layout1.setWidth100(); Layout child1 = new Layout(); child1.setWidth("*"); child1.setBorder("1px solid"); child1.setMembers(new Label("child1")); child1.setShowResizeBar(true); child1.setDefaultResizeBars(LayoutResizeBarPolicy.MARKED); child1.setResizeBarTarget("next"); final Layout child2 = new Layout(); child2.setBorder("1px solid"); child2.setMembers(new Label("child2")); child2.setVisible(false); final Layout layout2 = new Layout(); layout2.setBorder("1px solid"); layout2.setMembers(new Label("layout2")); layout2.addClickHandler(new ClickHandler() { public void onClick(ClickEvent clickEvent) { layout2.hide(); child2.show(); } }); child2.addVisibilityChangedHandler(new VisibilityChangedHandler() { public void onVisibilityChanged(VisibilityChangedEvent visibilityChangedEvent) { if (visibilityChangedEvent.getIsVisible()) { layout2.hide(); } else { layout2.show(); } } }); HLayout layout = new HLayout(); layout.setMembers(layout1, layout2); layout.setWidth100(); layout1.setMembers(child1, child2); layout.draw(); } }
The problem is that after clicking on layout2 the child2 cannot be drag-resized anymore(Maybe you need to drag-resize it first). The click-to-collapse behavior is ok. Is this a bug or are we doing this improper way?
Thanks
Comment