I have the following code in which RichTextEditor.setHeight("*") does not work correctly;
Will this bug be fixed?
Will this bug be fixed?
Code:
public class TestBug implements EntryPoint {
public void onModuleLoad() {
HTMLEditor editor = new HTMLEditor();
editor.setWidth("70%");
editor.setHeight("70%");
editor.init();
editor.draw();
}
class HTMLEditor extends Window {
public HTMLEditor () {
}
public void init() {
setTitle("editProperty");
setRedrawOnResize(true);
setShowMinimizeButton(false);
setIsModal(true);
setShowModalMask(true);
setKeepInParentRect(true);
addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(CloseClickEvent event) {
destroy();
}
});
Button cancelButton = new Button("cancel");
Button saveButton = new Button("save");
HLayout hLayout = new HLayout(5);
hLayout.setAlign(Alignment.RIGHT);
hLayout.setAutoHeight();
hLayout.addMembers(cancelButton, saveButton);
RichTextEditor textEditor = new RichTextEditor();
textEditor.setWidth("100%");
textEditor.setHeight("*");
textEditor.setControlGroups(new Object[]{StandardControlGroup.FONTCONTROLS, StandardControlGroup.STYLECONTROLS, StandardControlGroup.FORMATCONTROLS, StandardControlGroup.COLORCONTROLS, StandardControlGroup.BULLETCONTROLS});
addItem(textEditor);
addItem(new LayoutSpacer(1, 5));
addItem(hLayout);
addItem(new LayoutSpacer(1, 5));
show();
centerInPage();
}
}
}
Comment