Hello,
setting the size of a SectionStack after adding it to a HLayout but before drawing everything does not work.
Here is the code to reproduce this bug:
I'm using Smartgwt LGPL 3.1p 2013/01/02
regards Andreas
setting the size of a SectionStack after adding it to a HLayout but before drawing everything does not work.
Here is the code to reproduce this bug:
Code:
@Override
public void onModuleLoad() {
SectionStack left = createSectionStack("red");
SectionStack right = createSectionStack("blue");
// works
// left.setWidth("30%");
// right.setWidth("70%");
HLayout panel = new HLayout();
panel.setWidth100();
panel.setHeight100();
panel.setMembers(left, right);
// Does not work
left.setWidth("30%");
right.setWidth("70%");
panel.draw();
// works again
// left.setWidth("30%");
// right.setWidth("70%");
}
private SectionStack createSectionStack(String color) {
Label label = new Label();
label.setBackgroundColor(color);
SectionStackSection section = new SectionStackSection();
section.setItems(label);
SectionStack stack = new SectionStack();
stack.addSection(section);
return stack;
}
regards Andreas