Skip to content

Top and Left positioning not working within *ngFor loop #2

@HansGuckInDieLuft

Description

@HansGuckInDieLuft

Hello all,
within the component PopoverContent, consider replacing the offset calculation in the method position by

    protected position(nativeEl: HTMLElement): ... {
...
...
        return {
            width: boundingClientRect.width || nativeEl.offsetWidth,
            height: boundingClientRect.height || nativeEl.offsetHeight,
            top: elBCR.top,// - offsetParentBCR.top,
            left: elBCR.left// - offsetParentBCR.left
        };
    }

That would make popup work within ngFor.

Regards,
Hans

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions