mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(popover): popover positioning for controller and inline (#26274)
Resolves #24716
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user