11 lines
135 B
JavaScript
11 lines
135 B
JavaScript
![]() |
|
||
|
function computeLayout(node) {
|
||
|
return {
|
||
|
top: 0,
|
||
|
left: 0,
|
||
|
width: node.style.width,
|
||
|
height: node.style.height
|
||
|
};
|
||
|
}
|
||
|
|