RFR: 8230833: LabeledSkinBase computes wrong height with ContentDisplay.GRAPHIC_ONLY [v5]

Andy Goryachev angorya at openjdk.org
Wed Feb 8 20:06:54 UTC 2023


On Wed, 8 Feb 2023 12:19:34 GMT, Karthik P K <kpk at openjdk.org> wrote:

>> Ignore text condition was not considered in `computePrefHeight` method while calculating the Label height.
>> 
>> Added `isIgnoreText` condition in `computePrefHeight` method while calculating Label height.
>> 
>> Tests are present for all the ContentDisplay types. Modified tests which were failing because of the new height value getting calculated.
>
> Karthik P K has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Addressing review comments

I'd recommend to make further optimizations, see the code sample.

For your convenience, I've added a Label page to the monkey tester
https://github.com/andy-goryachev-oracle/Test/blob/main/src/goryachev/monkey/MonkeyTesterApp.java

(sorry, it is still in a separate repository.  if you use Eclipse, just import the project into your workspace)

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

PR: https://git.openjdk.org/jfx/pull/996


More information about the openjfx-dev mailing list