On Wed, 25 Mar 2026 17:12:27 GMT, Marius Hanl <[email protected]> wrote:
>> That would depend on the screen configuration which x and y values are right >> or wrong in this case. It also depends on the OS, the old (wrong) centering >> code resulted in different levels of offsets from the center on different >> systems for me > > As far as I can see, it uses the owner `Scene` and `DialogPane` sizes, so it > might be possible to set all those values and get predictable X and Y values. > > And since the tests are headless with the stub toolkit, it might be indeed > predictable (same code should run for all OS). Worth a try at least Alright, I added tests for this. It should work if the screen sizes for the tests are the same everywhere ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2127#discussion_r3012220215
