The examples show that the popover appears pointing to the item that triggered it, but in my case it always appears in the middle of the screen, I don’t understand why.
Here is an example of how it is currently displayed.
This is my code:
public async showActionsProfilePhoto() {
const popover = await this.popoverController.create({
component: OptionsHeaderComponent,
});
return await popover.present();
}
<ion-avatar class="photo-header" (click)="showActionsProfilePhoto()">
<img [src]="photoUser" />
</ion-avatar>