lo: allow setting layoutMaxDepth param from dialog