Announcement

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

    setNeverDisable doesn't show hover when added to a disabled FormItem

    Hi,

    When a FormItem is disabled, you can still enable its FormItemIcon by setting setNeverDisable. But then it does not change to hover style.

    * FireFox 17 dev mode
    * SmartClient Version: v8.3p_2013-04-08/Pro Deployment (built 2013-04-08)

    Repro:
    Code:
    DynamicForm form = new DynamicForm();
    String ICON_SKIN_ACTION_ADD = "[SKINIMG]/ImgButton/button.png";
    
    FormItemIcon icon = new FormItemIcon();
    icon.setSrc(ICON_SKIN_ACTION_ADD);
    icon.setNeverDisable(true);
    icon.setShowOver(true);
    
    FormItem item = new FormItem("item1");
    item.setIcons(icon);
    
    FormItem item2 = new FormItem("item2");
    item2.setIcons(icon);
    item2.setDisabled(true);
    
    form.setFields(item, item2);
    * When the mouse hovers over the icon on item1, the icon goes to hover style. OK
    * When the mouse hovers over the icon on item2, the icon doesn't change. NOK
    * In both cases the mouse pointer changes. OK


    TIA,

    #2
    We've made a fix to the SC 9.0d/SGWT 4.0d and SC 8.3p/SGWT 3.1p branches that should resolve this problem. It will be in the next nightly builds.

    Comment

    Working...
    X