Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HansGuckInDieLuft opened this issue Oct 26, 2016 · 2 comments
Open

Comments

@HansGuckInDieLuft
Copy link

HansGuckInDieLuft commented Oct 26, 2016

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
Copy link
Contributor

Thanks for reporting this, I will take a look later

@allenhwkim
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants