From 31ab10de4e1c8e38582b985f19414f73337a63c8 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Mon, 14 Nov 2022 12:17:46 -0500 Subject: [PATCH] fix(popover): popover positioning for controller and inline (#26274) Resolves #24716 --- core/src/components/popover/popover.tsx | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/core/src/components/popover/popover.tsx b/core/src/components/popover/popover.tsx index 5139e4ee0a..a6f0e431f8 100644 --- a/core/src/components/popover/popover.tsx +++ b/core/src/components/popover/popover.tsx @@ -465,18 +465,16 @@ export class Popover implements ComponentInterface, PopoverInterface { this.configureDismissInteraction(); // TODO: FW-2773: Apply this to only the lazy build. - if (inline === true) { - /** - * ionMount only needs to be emitted if the popover is inline. - */ - this.ionMount.emit(); - /** - * Wait one raf before presenting the popover. - * This allows the lazy build enough time to - * calculate the popover dimensions for the animation. - */ - await waitOneFrame(); - } + /** + * ionMount only needs to be emitted if the popover is inline. + */ + this.ionMount.emit(); + /** + * Wait one raf before presenting the popover. + * This allows the lazy build enough time to + * calculate the popover dimensions for the animation. + */ + await waitOneFrame(); this.currentTransition = present(this, 'popoverEnter', iosEnterAnimation, mdEnterAnimation, { event: event || this.event,