Opened 10 years ago

Closed 9 years ago

#9858 closed defect (fixed)

Images not scaling correctly with SVG renderer.

Reported by: Luis Montes Owned by: Eugene Lazutkin
Priority: high Milestone: 1.4.1
Component: DojoX GFX Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:


When adding an image to a surface using createImage(), the shape created is of the correct dimensions specified. However, the image does not stretch in SVG to fill the shape's dimensions. The image keeps its original proportions and the extra space in the shape is transparent.

This is a problem with the default renderer on Firefox 3.5 and Chrome.

In IE7 with VML, the image correctly stretches to the shape's dimensions specified in the constructor.

Change History (6)

comment:1 Changed 10 years ago by Luis Montes

Also seems to render correctly in Canvas. Problem appears to be limited to the SVG renderer.

comment:2 Changed 9 years ago by Eugene Lazutkin

Milestone: tbd1.4.1
severity: majornormal
Status: newassigned

comment:3 Changed 9 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed

(In [21169]) gfx: forcing SVG images to fill the whole box + tests for that, thx monteslu for bringing it to my attention!, !strict, fixes #9858.

comment:4 Changed 9 years ago by Adam Peller

Resolution: fixed
Status: closedreopened

does not appear to be in 1.4 branch

comment:5 Changed 9 years ago by Eugene Lazutkin

(In [21195]) dojox.gfx: copying fixes to 1.4.x branch, !strict, refs #10345, refs #9815, refs #9858, refs #10353, refs #10632.

comment:6 Changed 9 years ago by Eugene Lazutkin

Resolution: fixed
Status: reopenedclosed

thx Adam for spotting the problem!

Note: See TracTickets for help on using tickets.