[Webkit-unassigned] [Bug 9579] LayoutTests/fast/events/objc-event-api.html failing due to screenY output

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Mon Jun 26 03:45:20 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9579





------- Comment #3 from ddkilzer at kilzer.net  2006-06-26 03:45 PDT -------
(In reply to comment #2)
> Created an attachment (id=9043)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=9043&action=view) [edit]
> Report screenY values as (height of main screen - screenY)

You should denote that the "screenY" value is computed ("flipped") rather than
the actual value on the output.

> screenY values are reported as (height of main screen - screenY). However, I'm
> unsure about the values being between -9,000 and -10,000 - where does it get
> 10,000 pixels from?

Per Darin via IRC, if you think of the screen as a set of X and Y coordinates,
the origin point for Mac OS X is in the lower left-hand corner, and all X and Y
values are positive values.  OS X inherited this behavior from PostScript. 
Other operating systems (Windows?) put the origin point in the upper left-hand
corner, thus making X values positive and Y values negative.  By subtracting
the screenY value from the window height, this "flips" the origin point and
(apparently) removes the height of the browser window from the value (which can
vary from computer to computer).

I'm sure someone will correct me if I'm wrong.  :)


-- 
Configure bugmail: http://bugzilla.opendarwin.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