Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#9400 closed defect (fixed)

dojox.gfx - zero width or height throws errpr

Reported by: Mike Wilcox Owned by: Mike Wilcox
Priority: high Milestone: 1.4
Component: DojoX GFX Version: 1.3.0
Keywords: Cc: Eugene Lazutkin
Blocked By: Blocking:

Description

VML handles NaN, but not zero. vml.js line 225: if(isNaN(l)) l = 0; if(isNaN(t)) t = 0; if(isNaN(w)) w = 1; if(isNaN(h)) h = 1; ...if w or h is zero, the origin var fails with a divide by zero.

Change History (4)

comment:1 Changed 11 years ago by Mike Wilcox

Resolution: fixed
Status: newclosed

(In [17933]) Fixes #9400 - prevent h or w from being zero and dividing in origin var.

comment:2 Changed 11 years ago by Mike Wilcox

(In [17934]) Refs #9400 - typo in last fix.

comment:3 Changed 11 years ago by Mike Wilcox

(In [17935]) Refs #9400 - another typo. It's a little too early I think.

comment:4 Changed 11 years ago by Eugene Lazutkin

Milestone: tbd1.4
Note: See TracTickets for help on using tickets.