ngContextMenu icon indicating copy to clipboard operation
ngContextMenu copied to clipboard

ngContextMenu inside uiGrid's row template wrong posotion

Open ndjordjevic opened this issue 8 years ago • 2 comments

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.

ndjordjevic avatar Mar 07 '16 10:03 ndjordjevic

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.

Wildhoney avatar Mar 07 '16 10:03 Wildhoney

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).

bendspoons avatar Jul 11 '17 14:07 bendspoons