[webkit-dev] JavaScript question: how to find out the position of a tooltip relative to the document body in a zoomed and scrolled page

2009-10-05 Thread Xiaomei Ji
I am trying to display a tooltip under the mouse when mouse stays at a position long enough. I am using absolute positioning, set the tooltip as the child of the document.body, and set the style.left and style.top as event.clientX + document.body.scrollLeft and event.clientY +

Re: [webkit-dev] JavaScript question: how to find out the position of a tooltip relative to the document body in a zoomed and scrolled page

2009-10-05 Thread Sam Weinig
This is a question that is better suited for webkit-help. This list is for the discussion of the development of webkit. -Sam On Mon, Oct 5, 2009 at 4:37 PM, Xiaomei Ji x...@chromium.org wrote: I am trying to display a tooltip under the mouse when mouse stays at a position long enough. I am