hello, using smart gwt 3.0 Power.
As shown on the screenshot, the last TextAreaItem of the form is showing in one line. Somehow, whatever I seem to try, I cannot change the height.
What am I missing? It is contained in a VLayout, that contains:
1. a IButton with fixed height
2. a Label with fixed height
3. The dynamic form with no height set, containing the said TextAreaItem that has the height problem.
The Form code is like this:
This is the .ds.xml field.
The whole thing is contained in a HLayout that has 100% height.
What is wrong? I kinda tried lots of things (fixed height, etc)... but it just doesn't seem to change its height.
On the screenshot the problematic field is the last field, just above the button. It also seems editable, but I cannot type anything in it. Pretty weird!
As shown on the screenshot, the last TextAreaItem of the form is showing in one line. Somehow, whatever I seem to try, I cannot change the height.
What am I missing? It is contained in a VLayout, that contains:
1. a IButton with fixed height
2. a Label with fixed height
3. The dynamic form with no height set, containing the said TextAreaItem that has the height problem.
The Form code is like this:
Code:
protected class ShopFormWidget extends VLayout { private ShopForm shopForm = new ShopForm(); private Label expl1 = new Label(); private IButton saveShop = new IButton("Opslaan"); public ShopFormWidget(){ super(5); saveShop.setHeight(25); expl1.setContents("Wijzig hieronder uw bedrijfsinstellingen."); //expl1.setHeight(30); expl1.setAutoHeight(); saveShop.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { shopFormWidget.getForm().saveData(new DSCallback(){ public void execute(DSResponse response, Object rawData, DSRequest request) { notifications.setContents("Wijzigingen opgeslagen."); notifications.render(); } }); } }); addMember(expl1); addMember(shopForm); addMember(saveShop); } public ShopForm getForm(){ return shopForm; } protected class ShopForm extends DynamicForm { private DataSource shopDs = DataSource.get("Shop"); private TextItem name = new TextItem("name", shopMsgs.name()); private TextItem street = new TextItem("street", shopMsgs.street()); private TextItem number = new TextItem("number", shopMsgs.number()); private TextItem zipcode = new TextItem("zipcode", shopMsgs.zipcode()); private TextItem city = new TextItem("city", shopMsgs.city()); private TextItem country = new TextItem("country", shopMsgs.country()); private TextItem phone = new TextItem("phone", shopMsgs.phone()); private TextItem email = new TextItem("email", shopMsgs.email()); private TextAreaItem description = new TextAreaItem("description", shopMsgs.description()); public ShopForm(){ setColWidths(130,"*"); name.setWidth("*"); setDataSource(shopDs); setAutoFetchData(true); street.setWidth("*"); number.setWidth(60); zipcode.setWidth(60); city.setWidth("*"); country.setWidth("*"); phone.setWidth("*"); email.setWidth("*"); description.setWidth("*"); description.setHeight("*"); setTitleAlign(Alignment.LEFT); //setTitleOrientation(TitleOrientation.TOP); setNumCols(2); description.setHeight(12); setFields(name,street,number,zipcode,city,country, phone,email, description); } } }
Code:
<field name="description" type="text" required="false" length="65536" />
What is wrong? I kinda tried lots of things (fixed height, etc)... but it just doesn't seem to change its height.
On the screenshot the problematic field is the last field, just above the button. It also seems editable, but I cannot type anything in it. Pretty weird!
Comment