Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

absolutePosition: account for possible offetParent #230

Description

@jonlarsson

The function absolutePosition is not taking offsetParent into account when calculating the absolute position of an element.

One exmple where this i causing problems is using a PrimeNG popover in a datatable . The datatable has position: relative by default which causes any nested popover to be offset by the datatable position. Since this is not accounted for in absolutePosition, the resulting position is wrong.

It is often preferrable from an accessability standpoint to keep the popover a sibling to the button that opens it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions