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

ngContextMenu inside uiGrid's row template wrong posotion #22

Open
ndjordjevic opened this issue Mar 7, 2016 · 2 comments
Open

ngContextMenu inside uiGrid's row template wrong posotion #22

ndjordjevic opened this issue Mar 7, 2016 · 2 comments

Comments

@ndjordjevic
Copy link

ngContextMenu calculates coordinates wrongly when is placed inside of row template in UIGrid even with position:absolute. I think it takes grid's coordinates instead screen's.

@Wildhoney
Copy link
Owner

Yep – absolute is a whole different scenario, as it's relative to the UIGrid, so although it gets the correct coodinates, the values aren't relative to its container.

I'll have to think about that, as ngContextMenu is designed to work with position: fixed which doesn't suffer from the same complexities as absolute.

@bendspoons
Copy link

bendspoons commented Jul 11, 2017

I just made a workaround to fix the Position of the ContextMenu by subtracting pixel scroll distance "$(window).scrollTop()" from the y Pos (in Line 137, uncompressed file).

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

3 participants