[Webkit-unassigned] [Bug 12753] New: Incorrect value for javascript window.screenX and window.screenY values.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 12 20:04:26 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12753
Summary: Incorrect value for javascript window.screenX and
window.screenY values.
Product: WebKit
Version: 420+ (nightly)
Platform: All
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tom at bungeelabs.com
In javascript, the screenX and screenY members of the window object give the
screen coordinates of the top-left coordinates of the chrome window. This is
incorrect. The values returned should point to the first pixel in the content
window.
Firefox returns the first pixel of the content window as (window.screenX,
window.screenY). IE returns the first pixel of the content window as
(window.screenTop,window.screenLeft).
This is happening because the outer window rectangle is used as the return
value for these properties: kjs_window.cpp:
case ScreenTop:
case ScreenY:
return jsNumber(m_frame->page()->chrome()->windowRect().y());
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list