Hi,
I wrote the following code:
The problem concerns the height of richTextEditor which is set to 100%. However, if I have many items in controls object, then the height of richTextEditor is still 100% but in reference to this line: hLayout.setHeight(300); In fact, the height of hLayout is higher than 300 because of many controls in controls object. This is what I get:
Is there any way to force richTextEditor to have the same height as controls object?
Thanks in advance
I wrote the following code:
Code:
public void onModuleLoad() { TextItem textItem = new TextItem(); DynamicForm form = new DynamicForm(); form.setItems(textItem,textItem,textItem,textItem,textItem, textItem,textItem,textItem,textItem,textItem,textItem,textItem); VLayout controls = new VLayout(); controls.setWidth(400); controls.setHeight100(); controls.setMembers(form); RichTextEditor richTextEditor = new RichTextEditor(); richTextEditor.setHeight100(); richTextEditor.setShowEdges(true); HLayout hLayout = new HLayout(); hLayout.setHeight(300); hLayout.setPadding(10); hLayout.setShowEdges(true); hLayout.setMembers(controls, richTextEditor); VLayout task = new VLayout(); task.setWidth100(); task.addMember(hLayout); task.draw(); }
Is there any way to force richTextEditor to have the same height as controls object?
Thanks in advance
Comment