layout
layout copied to clipboard
fix #15 and fix #20, add some test case.
Use the patch mentioned by #15, because #20 needs it.
fix #20: Update all children nodes after calculating x coordinates.