Fix layout size when root, add complex example