(node, axis)
| 161 | // If both left and right are defined, then use left. Otherwise return |
| 162 | // +left or -right depending on which is defined. |
| 163 | function getRelativePosition(node, axis) { |
| 164 | if (leading[axis] in node.style) { |
| 165 | return getPosition(node, leading[axis]); |
| 166 | } |
| 167 | return -getPosition(node, trailing[axis]); |
| 168 | } |
| 169 | |
| 170 | var leading = { |
| 171 | row: 'left', |
no test coverage detected
searching dependent graphs…