margin for several children

This commit is contained in:
Christopher Chedeau
2014-03-30 20:33:40 -07:00
parent f1796048b8
commit f9a5eafb1c
2 changed files with 22 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ function computeLayout(node) {
top: top,
left: 0
}));
top += child.style.height;
top += child.style.height + 2 * getMargin(child);
});
var result = {