Hello,
if I set the height of a canvas item in pixel and use this canvas in a SectionStackSection the size is not taken into account:
If I set the height in % it works. Am I doing sth. wrong? I'm using SmartGWT LGPL 3.1p 2013/01/02.
regards Andreas
if I set the height of a canvas item in pixel and use this canvas in a SectionStackSection the size is not taken into account:
Code:
@Override
public void onModuleLoad() {
SectionStack stack = new SectionStack();
SectionStackSection s1 = new SectionStackSection();
Canvas lg1 = new ListGrid();
s1.setItems(lg1);
s1.setExpanded(true);
SectionStackSection s2 = new SectionStackSection();
Canvas lg2 = new ListGrid();
s2.setItems(lg2);
s2.setExpanded(true);
lg1.setHeight("100px");
lg2.setHeight("300px");
stack.setSections(s1, s2);
stack.setWidth100();
stack.setHeight100();
stack.setVisibilityMode(VisibilityMode.MULTIPLE);
stack.draw();
}
regards Andreas
Comment