Integrated: 8305709: [testbug] Tree/TableViewResizeColumnToFitContentTest fails with fractional screen scale
Andy Goryachev
angorya at openjdk.org
Thu Sep 21 14:25:51 UTC 2023
On Thu, 7 Sep 2023 18:26:50 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> Snapping introduces differences between computed values and snapped values, so we need to use non-zero tolerance when checking for equality. The maximum tolerance is (1 / scale) - one display pixel scaled back to the local coordinates.
>
> The tests have been modified to use the scale-specific tolerance.
>
> Tested with macOS at scale 1.0 and win11 at scales (100%, 125%, 150%, 175%).
This pull request has now been integrated.
Changeset: 9658fc71
Author: Andy Goryachev <angorya at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/9658fc7183ceebfcc2c5da5ba9b77b1a1a48486a
Stats: 85 lines in 3 files changed: 37 ins; 11 del; 37 mod
8305709: [testbug] Tree/TableViewResizeColumnToFitContentTest fails with fractional screen scale
Reviewed-by: kpk, kcr
-------------
PR: https://git.openjdk.org/jfx/pull/1234
More information about the openjfx-dev
mailing list