I have 2 sections (form and list) which has wider content than parent layout. I want to scroll both sections with just one scrollbar.
In my sample code when you scroll to the right:
- form, form-items and list-body is painted correctly
- scrolled area for section title stripes are not painted
- scrolled area for table header is not painted
Not painted parts have in the sample code red color.
Do you have any advice?
- the same behaviour is in FF and IE.
In my sample code when you scroll to the right:
- form, form-items and list-body is painted correctly
- scrolled area for section title stripes are not painted
- scrolled area for table header is not painted
Not painted parts have in the sample code red color.
Do you have any advice?
Code:
@Override public void onModuleLoad() { // sample form items FormItem[] formItems = new FormItem[4]; for (int i = 0; i < 3 ; i++) { formItems[i] = new TextItem(); formItems[i].setTitle("title" + new Integer(i + 1)); } formItems[3] = new SpacerItem(); // sample ListGrid fields ListGridField[] listFields = new ListGridField[3]; for (int i = 0; i < 3 ; i++) { listFields[i] = new ListGridField(); listFields[i].setTitle("column" + new Integer(i + 1)); listFields[i].setWidth(200); } // dynamic form DynamicForm form = new DynamicForm(); form.setBorder("1px lightGray"); form.setWidth(600); form.setBackgroundColor("lightBlue"); form.setNumCols(6); form.setItems(formItems); // listGrid ListGrid listGrid = new ListGrid(); listGrid.setBodyBackgroundColor("lightGreen"); listGrid.setLeaveScrollbarGap(Boolean.FALSE); listGrid.setOverflow(Overflow.VISIBLE); listGrid.setBodyOverflow(Overflow.VISIBLE); listGrid.setFields(listFields); // sections SectionStackSection formSection = new SectionStackSection(); formSection.setTitle("Form section"); formSection.setExpanded(Boolean.TRUE); formSection.addItem(form); SectionStackSection listSection = new SectionStackSection(); listSection.setTitle("List section"); listSection.setExpanded(Boolean.TRUE); listSection.addItem(listGrid); // section stack SectionStack sectionStack = new SectionStack(); sectionStack.setOverflow(Overflow.AUTO); sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE); sectionStack.setSections(formSection, listSection); // layout VLayout layout = new VLayout(); layout.setTop(10); layout.setLeft(10); layout.setWidth(500); layout.setHeight(400); layout.setBackgroundColor("red"); layout.setMembers(sectionStack); layout.draw(); }
Comment