What is the proper way to get bounding box for HTML elements relative to the Window?

笑着哭i 提交于 2019-12-04 04:58:06
Vincent McNabb

This question has code that works out the x and y of an element relative to the visible window. Not sure if it answers your question.

Turns out getting the location is irrelevant because you can position items relative to the element using something like:

hoverPanel.openPopup(someElement, "overlap", offsetX, offsetY, false, false);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!