Announcement

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

    showSelectedIcon on isc.IconButton has no effect

    SmartClient Version: v9.1p_2016-04-15/Pro Development Only (built 2016-04-15)
    All browsers

    When setting showSelectedIcon to true in an isc.IconButton, the selected icon does not appear when the button is selected. In an isc.Button, this property successfully works. Looking into it further, the "getTitle" is being called which sets the icon property to null. When the icon is changed to a selected state, it uses the icon property to check if it should add an icon suffix (in this case it is "Selected"). But since it is null, it will not append the icon suffix. How could we get this behaviour functioning on the IconButton?

    Code:
    isc.VLayout.create({
        members: [
            isc.IconButton.create({
                showFocusedAsOver: false,
                showButtonTitle: false,
                showIcon: true,
                width: 20,
                height: 20,
                icon: "http://www.google.com/favicon.ico",
                actionType: "checkbox",
                showSelectedIcon: true
            })
        ]
    });

    #2
    We've made a change to address this issue and back-ported all the way to the 9.1 branch (though, of course, if you're doing active development we strongly recommend moving to the most recent SmartClient branch, currently 11.0).
    The fix will be present in the next nightly build, dated June 3 or above.

    Regards
    Isomorphic Software

    Comment

    Working...
    X