ng2-ui/popup

Top and Left positioning not working within *ngFor loop

HansGuckInDieLuft opened this issue · 2 comments

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

Thanks for reporting this, I will take a look later

Took a look at it. but could not find a place to implement this.