Announcement

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

    ColorPicker 'defaultOpacity' attribute is not working

    ColorPicker 'defaultOpacity' attribute is not working

    You can test with this simple example

    Code:
    isc.Label.create({
      border: '1px black solid',
      width: 300,
      height: 30,
      contents: 'Click to select a color',
      selectedColor: '#FFFFFF',
      selectedOpacity: 100,
      click : function () {
        var me = this;
        isc.ColorPicker.getSharedColorPicker({
          supportsTransparency: true,
          defaultPickMode: 'complex',
          defaultOpacity: me.selectedOpacity,
          defaultColor: me.selectedColor,
          colorSelected: function (color, opacity) {
            this.Super('colorSelected', arguments);
            me.selectedColor = color;
            me.selectedOpacity = opacity;
            me.setBackgroundColor(color);
            me.setOpacity(opacity);
          }
        }).show();
      }
    });
    To reproduce it:
    * Click the label
    * Select black color with 50% opacity
    * Press 'OK' button. You will see the label as 'grey' (really it is black with 50% opacity)
    * Click the label again
    * Without modifying anything, press 'OK' button. Now the label is pure 'black'.

    This is because it seems the ColorPicker is ignoring the 'defaultOpacity' attribute.

    Thanks and regards.

    Thanks.

    #2
    Thanks for the clear test case. We've made a change to address this. Please try the next nightly build (dated Dec 27 or higher) in the 8.3p or 9.0d branches

    Regards
    Isomorphic Software

    Comment

    Working...
    X