Opened 10 years ago

Closed 10 years ago

#8795 closed defect (invalid)

dojo.contentBox reports negative size in IE8

Reported by: haysmark Owned by: James Burke
Priority: high Milestone: tbd
Component: Core Version: 1.3.0b2
Keywords: Cc: bill
Blocked By: Blocking:

Description

When you call dojo.contentBox on in IE8, you can incorrectly get a negative width and height.

Isolated test case attached. Place adjacent to /dojo. When you click Edit->Copy in IE8, the console prints:

'not actually copying anything, just a test! -3 -2'

Where -3 is the reported width of the Copy menu item in IE8, and -2 is the respective height. FF3 reports 61 and 23, respectively.

You can verify you fixed the bug by running Bill's doh.robot test for test_Menu, where he originally discovered the problem (robot tries to click Copy via a contentBox call and misses):

http://archive.dojotoolkit.org/nightly/checkout/dijit/tests/robot/Menu_mouse.html

Attachments (1)

test_contentBox.html (2.4 KB) - added by haysmark 10 years ago.
Test case. Run in IE8. Click Edit->Copy from the menubar widget to reproduce bug.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by haysmark

Attachment: test_contentBox.html added

Test case. Run in IE8. Click Edit->Copy from the menubar widget to reproduce bug.

comment:1 Changed 10 years ago by bill

Owner: changed from anonymous to James Burke

James said he will try this on a newer IE8 and see if it's fixed, assigning to him for now...

comment:2 Changed 10 years ago by James Burke

In IE 8.0.6001.18697, this is working better:

In standards IE8 mode: "not actually copying anything, just a test! 62 24"

In IE 7 compatibility mode: "not actually copying anything, just a test! 61 23"

So the width/height is different by 1px each in standards mode. Is this expected in IE browsers? If so, or if this is considered good enough, feel free to close the bug.

comment:3 Changed 10 years ago by James Burke

Resolution: invalid
Status: newclosed

Checked with Bill, this is good now as far as contentBox. I can't get the robot test to fully pass but I am using a VM. Different runs give different number of fail results.

Note: See TracTickets for help on using tickets.