On Mon, 19 Aug 2024 17:39:38 GMT, Martin Fox <m...@openjdk.org> wrote:

>> on mac and windows the coordinates can be negative, depending on the screen 
>> arrangement.
>> 
>> why do we need to rely on the fact that `pos[]` values are positive anyway?
>
> I was able to set up a multiple monitor system. Linux does work differently 
> than Mac or Windows but the X coordinate returned by View can still be 
> negative if the window is partially off the left edge of the leftmost screen. 
> But in that case the Window's X coordinate will also be negative so 
> subtracting it out will generate the correct widget-relative location. So I 
> suggest removing the conditional checks here.

Removed (the negative checks)

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1080#discussion_r1724776588

Reply via email to