Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SpinnerItem - strange display of picker icon

    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 :

    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
    Attached Files
    Last edited by zoranl; 28 May 2012, 22:00.

    #2
    Same problem here. When a spinneritem has an formitemicon and the validation error icon appear the formitem goes ugly.

    SmartClient Version: v8.2p_2012-10-02/LGPL Development Only (built 2012-10-02)
    Firefox 15.0.1
    Attached Files

    Comment

    Working...
    X