PBL-5485: Avoid popovers not fitting.