[Dojo-checkins] [dojo] #9404: dojo.marginBox() returns wrong left and top values for crazy layouts in IE (was: dojo.marginBox() returns wrong left value for crazy layouts in IE7)
dojo
trac at dojotoolkit.org
Mon Jun 15 14:52:07 EDT 2009
#9404: dojo.marginBox() returns wrong left and top values for crazy layouts in IE
-----------------------+----------------------------------------------------
Reporter: cb1kenobi | Owner: anonymous
Type: defect | Status: new
Priority: highest | Milestone: 1.4
Component: Core | Version: 1.3.0
Severity: major | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Comment(by cb1kenobi):
Yeah, the above patch is bad. I've attached my latest test cases (v3). I
also attached an image with screenshots of IE6, IE7, IE8 in various modes,
and FF3 for reference.
The test case has 2 squares. The first is a floated left div. The second
is a position absolute div.
IE8 was working until I added yet again another nested div, then it got
confused. So, now all versions of IE have issues.
And it appears this is no longer exclusive to the left value, but also the
top value.
For the curious, I discovered this bug while trying to use dojox.fx.split
on a div that was nested in a div that was positioned absolute. The
ticket for that is #9394. After fixing that issue did I discover this
issue.
I tried messing around with manually computing the correct offsetLeft
value, but given the short amount of time, I haven't found a solution.
I'm still investigating the possibility of manually computing the correct
offsetLeft and offsetTop based on analyzing margins, borders, and padding
of the node and it's parent nodes.
--
Ticket URL: <http://trac.dojotoolkit.org/ticket/9404#comment:5>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit
More information about the Dojo-checkins
mailing list