Hello,
I am using SmartClient Version: v8.3p_2013-02-26/Enterprise Deployment (built 2013-02-26) and have a problem while using DateItem.
When I used SmartGWT 3.0p pro edition, I don't have any problem about using DateItem. But the distacnce between TextItem of DateItem and DateChooser is too far after upgrading to SmartGWT 3.1p EE. I didn't change my code after upgrade version of SmartGWT.
You may refer to sample code and attached screen shot.
Let me know how I can fix it. Thanks.
I am using SmartClient Version: v8.3p_2013-02-26/Enterprise Deployment (built 2013-02-26) and have a problem while using DateItem.
When I used SmartGWT 3.0p pro edition, I don't have any problem about using DateItem. But the distacnce between TextItem of DateItem and DateChooser is too far after upgrading to SmartGWT 3.1p EE. I didn't change my code after upgrade version of SmartGWT.
You may refer to sample code and attached screen shot.
Let me know how I can fix it. Thanks.
Code:
VLayout vLayout = new VLayout(); DynamicForm form = new DynamicForm(); form.setHeight(20); form.setAutoWidth(); DateItem dateItem = new DateItem("Date1"); dateItem.setWidth(100); DateItem dateItem2 = new DateItem("Date2"); dateItem2.setDateFormatter(DateDisplayFormat.TOJAPANSHORTDATE); dateItem2.setTitleOrientation(TitleOrientation.TOP); dateItem2.setUseTextField(true); dateItem2.setValue(new Date()); dateItem2.setWidth(100); form.setNumCols(4); form.setItems(dateItem, dateItem2); vLayout.addMember(form); DynamicForm form2 = new DynamicForm(); form2.setHeight(20); form2.setAutoWidth(); DateItem dateItem3 = new DateItem("Date3"); dateItem3.setDateFormatter(DateDisplayFormat.TOJAPANSHORTDATE); dateItem3.setTitleOrientation(TitleOrientation.TOP); dateItem3.setUseTextField(true); dateItem3.setValue(new Date()); dateItem3.setWidth(100); form2.setNumCols(2); form2.setItems(dateItem3); vLayout.addMember(form2); vLayout.draw();
Comment