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

Karthik P K kpk at openjdk.org
Wed Feb 8 13:09:58 UTC 2023


On Tue, 7 Feb 2023 20:06:27 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> Karthik P K has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Addressing review comments
>
> modules/javafx.controls/src/main/java/javafx/scene/control/skin/LabeledSkinBase.java line 365:
> 
>> 363:         }
>> 364: 
>> 365:         String cleanText = getCleanText();
> 
> cleanText code block is unnecessary  when isIgnoreText() == true

Since `clenText` is used in `textHeight` calculation, this cannot be avoided before the `if-else` block as `if-else` block is not re-ordered now. Please refer to the previous comment for the details on `computePrefHeight()` method.

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

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


More information about the openjfx-dev mailing list