Fix popup layout.