Opened 13 years ago

Closed 12 years ago

#1932 closed defect (invalid)

toCoordinateObject always gets marginbox, should respect boxtype

Reported by: guest Owned by: sjmiles
Priority: high Milestone: 0.9
Component: HTML Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

dojo.html.toCoordinateObject get's the position using the boxtype parameter (in the node case), but then always calls dojo.html.getMarginBox. Perhaps this is a subtlety, but it seems like it should call getElementBox() passing on the boxtype....

var node = dojo.byId(coords); var pos = dojo.html.abs(node, includeScroll, boxtype); var marginbox = dojo.html.getMarginBox(node);

should be

var node = dojo.byId(coords); var pos = dojo.html.abs(node, includeScroll, boxtype); var elembox = dojo.html.getElementBox(node, boxtype);

:)ross rbunker at tableausoftware.com

Change History (3)

comment:1 Changed 12 years ago by dylan

Milestone: 0.9

comment:2 Changed 12 years ago by Adam Peller

Owner: changed from Bryan Forbes to sjmiles

comment:3 Changed 12 years ago by sjmiles

Resolution: invalid
Status: newclosed

toCoordinateObject is not ported to 0.9.

Note: See TracTickets for help on using tickets.