Make sure layout is redone after resizing.