RFR: 8299753: Tree/TableView: Column Resizing With Fractional Scale [v7]

Karthik P K kpk at openjdk.org
Sat Dec 9 13:35:25 UTC 2023


On Thu, 2 Nov 2023 15:31:40 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> Modified the resize algorithm to work well with fractional scale, thanks for deeper understanding of the problem thanks to  @hjohn and @mstr2 .
>> 
>> It is important to note that even though the constraints are given by the user in unsnapped coordinates, they are converted to snapped values, since the snapped values correspond to the actual pixels on the display.  This means the tests that validate honoring constraints should, in all the cases where (scale != 1.0), assume possibly error not exceeding (1.0 / scale) (I think).
>
> Andy Goryachev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 26 additional commits since the last revision:
> 
>  - Merge remote-tracking branch 'origin/master' into 8299753.resize
>  - tolerance
>  - Merge remote-tracking branch 'origin/master' into 8299753.resize
>  - undo merge
>  - no new api
>  - Merge remote-tracking branch 'origin/master' into 8299753.resize
>  - cleanup
>  - using snap inner space api
>  - Merge remote-tracking branch 'origin/master' into 8299753.resize
>  - Merge branch 'ag.8311527.snap.inner' into 8299753.resize
>  - ... and 16 more: https://git.openjdk.org/jfx/compare/b4cdf7d6...5e855022

Tested the changes in Windows 11 with different scale values. The fix works as expected.
I will review the code soon and complete the review.

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

PR Comment: https://git.openjdk.org/jfx/pull/1156#issuecomment-1848411826


More information about the openjfx-dev mailing list