Opened 14 years ago
Closed 14 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 14 years ago by
Milestone: | → 0.9 |
---|
comment:2 Changed 14 years ago by
Owner: | changed from Bryan Forbes to sjmiles |
---|
comment:3 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
toCoordinateObject is not ported to 0.9.