I am trying to use the AutoFitTextAreaItem and I want it to expand to auto-fit the current value, however, the field seems to be about 2 possibly 3 times the height of the current value, generating large amounts of white space in my form.
Am I doing something wrong here (see sample code below)? I would like the form to open with all of the text visible in the AutoFitTextAreaItem, nothing more, and nothing less.
Thanks
1. SmartClient Version: v9.1p_2014-05-08/Pro Deployment (built 2014-05-08)
2. FF ESR 24.5.0
6.
String autoFitTextAreaItemValue = "Large multi-line text......";
DynamicForm dynamicForm = new DynamicForm();
dynamicForm.setWidth100();
AutoFitTextAreaItem autoFitTextAreaItem = new AutoFitTextAreaItem("autoFitTextAreaItem", "AutoFitTextAreaItem");
autoFitTextAreaItem.setWidth("*");
dynamicForm.setItems(autoFitTextAreaItem);
dynamicForm.setValue("autoFitTextAreaItem", autoFitTextAreaItemValue);
Window window = new Window();
window.setTitle("AutoFitTextAreaItem");
window.setWidth(1000);
window.setHeight(400);
window.addItem(dynamicForm);
window.show();
Am I doing something wrong here (see sample code below)? I would like the form to open with all of the text visible in the AutoFitTextAreaItem, nothing more, and nothing less.
Thanks
1. SmartClient Version: v9.1p_2014-05-08/Pro Deployment (built 2014-05-08)
2. FF ESR 24.5.0
6.
String autoFitTextAreaItemValue = "Large multi-line text......";
DynamicForm dynamicForm = new DynamicForm();
dynamicForm.setWidth100();
AutoFitTextAreaItem autoFitTextAreaItem = new AutoFitTextAreaItem("autoFitTextAreaItem", "AutoFitTextAreaItem");
autoFitTextAreaItem.setWidth("*");
dynamicForm.setItems(autoFitTextAreaItem);
dynamicForm.setValue("autoFitTextAreaItem", autoFitTextAreaItemValue);
Window window = new Window();
window.setTitle("AutoFitTextAreaItem");
window.setWidth(1000);
window.setHeight(400);
window.addItem(dynamicForm);
window.show();
Comment