Set default layout according to node type.