fix(popover): popover positioning for controller and inline (#26274)

Resolves #24716
This commit is contained in:
Sean Perkins
2022-11-14 12:17:46 -05:00
committed by GitHub
parent 2c36049a7f
commit 31ab10de4e

View File

@ -465,18 +465,16 @@ export class Popover implements ComponentInterface, PopoverInterface {
this.configureDismissInteraction(); this.configureDismissInteraction();
// TODO: FW-2773: Apply this to only the lazy build. // TODO: FW-2773: Apply this to only the lazy build.
if (inline === true) { /**
/** * ionMount only needs to be emitted if the popover is inline.
* ionMount only needs to be emitted if the popover is inline. */
*/ this.ionMount.emit();
this.ionMount.emit(); /**
/** * Wait one raf before presenting the popover.
* Wait one raf before presenting the popover. * This allows the lazy build enough time to
* This allows the lazy build enough time to * calculate the popover dimensions for the animation.
* calculate the popover dimensions for the animation. */
*/ await waitOneFrame();
await waitOneFrame();
}
this.currentTransition = present(this, 'popoverEnter', iosEnterAnimation, mdEnterAnimation, { this.currentTransition = present(this, 'popoverEnter', iosEnterAnimation, mdEnterAnimation, {
event: event || this.event, event: event || this.event,