Hello
I am having a problem when the title of the SectionStackSection is too long so it will overlapped with the Controls that are already added to the SectionStackSection.
Here is a sample code:
Also I attached a screen-shot.
I am having a problem when the title of the SectionStackSection is too long so it will overlapped with the Controls that are already added to the SectionStackSection.
Here is a sample code:
Code:
public void onModuleLoad() {
SectionStack mainSectionStack = new SectionStack();
mainSectionStack.setSize("100px", "700px");
mainSectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
Button bb = new Button("control");
bb.setWidth(14);
bb.setHeight100();
VLayout testLayout = new VLayout();
testLayout.setHeight(350);
testLayout.setWidth(150);
SectionStackSection section1 = new SectionStackSection("loooooooooooooooooooooooooooooooong text");
section1.setExpanded(true);
section1.setCanCollapse(false);
section1.setControls(bb); // add the
section1.addItem(testLayout);
testLayout = new VLayout();
testLayout.setHeight(350);
testLayout.setWidth(100);
SectionStackSection section2 = new SectionStackSection("short text");
section2.setExpanded(true);
section2.setCanCollapse(false);
section2.addItem(testLayout);
mainSectionStack.addSection(section1);
mainSectionStack.addSection(section2);
mainSectionStack.draw();
}
Comment