Added support for laying children from right to left.