Browse files

Hard wrapped calcNodePosition documentation comment

  • Loading branch information...
1 parent e956c5e commit ece5a6c7af5fccac565ab2be15ab1cd17429d136 @onecrayon committed Dec 18, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 source/dom/dom.js
View
8 source/dom/dom.js
@@ -139,7 +139,13 @@ enyo.dom = {
calcMarginExtents: function(inNode) {
return this.calcBoxExtents(inNode, "margin");
},
- //* Returns an object like `{top: 0, left: 0, bottom: 100, right: 100, height: 10, width: 10}` that represents the object's position relative to `relativeToNode` (suitable for absolute positioning within that parent node). Negative values mean part of the object is not visible. If you leave `relativeToNode` undefined (or it is not a parent element), then the position will be relative to the viewport and suitable for absolute positioning in a floating layer.
+ /**
+ Returns an object like `{top: 0, left: 0, bottom: 100, right: 100, height: 10, width: 10}`
+ that represents the object's position relative to `relativeToNode` (suitable for absolute
+ positioning within that parent node). Negative values mean part of the object is not visible.
+ If you leave `relativeToNode` undefined (or it is not a parent element), then the position
+ will be relative to the viewport and suitable for absolute positioning in a floating layer.
+ */
calcNodePosition: function(inNode, relativeToNode) {
// Parse upward and grab our positioning relative to the viewport
var top = 0,

0 comments on commit ece5a6c

Please sign in to comment.