Skip to content

Commit

Permalink
Merge pull request #14 from fimenten/help
Browse files Browse the repository at this point in the history
made it working
  • Loading branch information
fimenten authored Jul 13, 2024
2 parents 5ca754b + 542cf16 commit 50e64f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ function deserializeDOM(data) {
);
}
let children = data.children.length ? data.children.map(d => deserialize(d)) : [];
children.forEach(childTray => {
tray.addChild(childTray)
});
console.log(children)
tray.isSplit = data.isSplit;
tray.flexDirection = data.flexDirection || 'column';
Expand All @@ -121,7 +124,8 @@ function deserializeDOM(data) {
tray.element.classList.add('split');
tray.updateSplitDirection();
}

tray.foldChildren()
tray.updateAppearance()


return tray;
Expand Down

0 comments on commit 50e64f0

Please sign in to comment.