Isn't there a nicer way of avoiding to call `doLayout`?

@jkburges will probably agree with me that calling `doLayout` means that you do something wrong...