RFR: 8230833: LabeledSkinBase computes wrong height with ContentDisplay.GRAPHIC_ONLY [v4]
Andy Goryachev
angorya at openjdk.org
Tue Feb 7 20:09:01 UTC 2023
On Tue, 7 Feb 2023 05:25:08 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
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
-------------
PR: https://git.openjdk.org/jfx/pull/996
More information about the openjfx-dev
mailing list