Opened 13 years ago

Closed 9 years ago

#9451 closed defect (wontfix)

Cannot draw shapes in a spawned window in IE7

Reported by: rovon Owned by: Eugene Lazutkin
Priority: high Milestone: future
Component: DojoX GFX Version: 1.3.0
Keywords: gfx IE7 Cc:
Blocked By: Blocking:


Creating a surface is now problem. As soon as you try to draw to it with createLine or createPolyline an error window pops up with the following message: Line: 419 Error: 'this.rawNode.path' is null or not an object. <end message>

This works fine when run in firefox. I've attached a test file which reproduces the problem. Place it in dojox/gfx/tests/. It's a modified version of test_poly.html.

Attachments (1)

testRovon_poly.html (3.0 KB) - added by rovon 13 years ago.
modified version of test_poly.html which runs the test in a spawned window.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by rovon

Attachment: testRovon_poly.html added

modified version of test_poly.html which runs the test in a spawned window.

comment:1 Changed 12 years ago by Eugene Lazutkin

Milestone: tbdfuture
severity: majornormal
Status: newassigned

comment:2 Changed 12 years ago by Justin Cooley

Same problem in IE8 where this.rawNode.path is undefined.

Quick Fix: Line 410 dojox/gfx/vml.js

if( !( "path" in this.rawNode ) ) {
	this.rawNode.path = { };
this.rawNode.path.v = "m" + shape.x1.toFixed() + " " + shape.y1.toFixed() +
	"l" + shape.x2.toFixed() + " " + shape.y2.toFixed() + "e";

This fix worked for us and we're using dojox.gfx.Line, but hasn't been tested with anything else. It may also need to be inserted into dojox.gfx.Polyline as well.

comment:3 Changed 9 years ago by bill

Resolution: wontfix
Status: assignedclosed

Given the decline of IE7, probably this won't be fixed.

Note: See TracTickets for help on using tickets.