Opened 15 years ago
Closed 15 years ago
#3016 closed defect (wontfix)
dojo.marginBox(), dojo.contentBox() doesn't always return size
Reported by: | bill | Owned by: | sjmiles |
---|---|---|---|
Priority: | high | Milestone: | 0.9beta |
Component: | HTML | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Judging from the code of dojo.marginBox(), it's supposed to return a size:
dojo.marginBox = function(node, boxObj){ ... return !b ? dojo._getMarginBox(node, s) : dojo._setMarginBox(node, b.l, b.t, b.w, b.h, s); }
However, dojo._setMarginBox() doesn't return anything.
Same issue for dojo.contentBox()
Note: See
TracTickets for help on using
tickets.
dojo.marginBox and dojo.contentBox are two-for-one functions. Each one is a getter if you pass one argument and a setter if you pass two. The setter version returns nothing.