Ticket #7522 (closed enhancement: fixed)

Opened 10 months ago

Last modified 10 months ago

setStroke with array argument for color fails on IE6+

Reported by: ptwobrussell Owned by: elazutkin
Priority: high Milestone: 1.2
Component: DojoX GFX Version: 1.1.1
Severity: normal Keywords:
Cc:

Description (last modified by elazutkin) (diff)

I noticed that this fails on IE6/7 for some reason:

ball = surface.createCircle({
    /* ... stuff ... */
})
//.setStroke("#888")
.setStroke([128,128,128])
.setFill("white")
;

It works fine on FF and Safari, but on IE it fails for both VML and Silverlight. Setting stroke with a string argument works fine though.

Change History

Changed 10 months ago by elazutkin

  • milestone changed from tbd to future

Moving all open ticketd to the future.

Changed 10 months ago by elazutkin

  • priority changed from normal to high
  • status changed from new to assigned

Changed 10 months ago by elazutkin

  • type changed from defect to enhancement
  • description modified (diff)
  • milestone changed from future to 1.2

Only string is supported as a shortcut, everything else (array, or object) should be properly wrapped:

shape.setStroke("red");
shape.setStroke({color: [255, 0, 0]});
shape.setStroke({color: {r: 255, g: 0, b: 0}});

I will extend this shortcut to include arrays, as well.

Changed 10 months ago by elazutkin

(In [15161]) gfx: allow to use an array as a shortcut for a stroke, the array will be treated as a color definition. Refs #7522. !strict

Changed 10 months ago by elazutkin

  • status changed from assigned to closed
  • resolution set to fixed

(In [15162]) gfx: allow to use a dojo.Color as a shortcut for a stroke. Fixes #7522. !strict

Note: See TracTickets for help on using tickets.