Closed Bug 165607 Opened 22 years ago Closed 22 years ago

Window.screenY returns wrong value

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vladimire, Assigned: mikepinkerton)

References

()

Details

Actual: window.screenY is 76 when the window is at the top of the screen, and is
decreasing as the window moved down. 
Expected: window.screenY is 0 when the window is at the top of the screen, and
increases as the window is moved down.

The wierd thing is that if you set window.screenY to 0 it moves the window to
the top of the screen as it should, but the value of window.screenY is 76
Hardware: PC → Macintosh
Vladimir, can you attach a testcase?
Its as easy as typing "javascript:alert(window.screenY);" in the url bar
Reproduced using Chimera/2002090505 on 10.1.5, except that I see 323 with the
window at top, decreasing as y increases (and eventually becoming negative).
screenX seems to work properly.

ScreenY works properly using FizzillaCFM/2002083017.
Summary: Window.screenY is calculated incorrectly → Window.screenY returns wrong value
Need to convert cocoa coords. ->pink
Assignee: saari → pinkerton
fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.