Doesn't this happen in base.Layout automatically?