Reputation: 1667
Is there a way for me to get the absolute position of a DIV element within a HTML5 Canvas element? Any help is greatly appreciated.
Upvotes: 1
Views: 982
Reputation: 73091
noVNC (HTML5 VNC client) has some routines that can determine:
They should be fairly cross-browser.
You can use those as reference and that might help with your issue: http://github.com/kanaka/noVNC/blob/master/include/util.js#L121
Disclaimer: I made noVNC.
Upvotes: 2