I would like to add a picker icon to SpinnerItem. I managed to do that with setIcons method, but the result is rather strange. The icon is not aligned with the rest of the spinner component. If I use the same icon with other FormItems (DateItem, TextItem), the icon is aligned as I think it should be (see picture).
Is there something that I can try to resolve this strange behaviour?
Here is sample code :
I'm using :
SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)
Firefox 3.6.28
Chrome 19.0.1084.46 m
OS: Win 7 Pro
GWT 2.4.0
Is there something that I can try to resolve this strange behaviour?
Here is sample code :
Code:
public void onModuleLoad() { DynamicForm form = new DynamicForm(); SpinnerItem spinnerItem = new SpinnerItem("spinnerItem", "Spinner"); spinnerItem.setStep(0.01); FormItemIcon formItemIcon = new FormItemIcon(); formItemIcon.setTabIndex(-1); formItemIcon.addFormItemClickHandler(new FormItemClickHandler() { @Override public void onFormItemClick(FormItemIconClickEvent event) { System.out.println("Click"); } }); spinnerItem.setIcons(formItemIcon); DateItem dateItem = new DateItem("dateItem", "Date"); dateItem.setUseTextField(true); dateItem.setIcons(formItemIcon); TextItem textItem = new TextItem("texxt", "Text"); textItem.setIcons(formItemIcon); form.setItems(spinnerItem, dateItem, textItem); form.show(); }
I'm using :
SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)
Firefox 3.6.28
Chrome 19.0.1084.46 m
OS: Win 7 Pro
GWT 2.4.0
Comment