Fix layout issues after orientation change.