Top and Left positioning not working within *ngFor loop
HansGuckInDieLuft opened this issue · 2 comments
HansGuckInDieLuft commented
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
allenhwkim commented
Thanks for reporting this, I will take a look later
allenhwkim commented
Took a look at it. but could not find a place to implement this.