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

2023-02-10 Thread Karthik P K
On Fri, 10 Feb 2023 09:57:21 GMT, Ajit Ghaisas wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Optimizing computePrefWidth method > > Looks good! @aghaisas please sponsor this PR. - PR: https://git.op

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

2023-02-10 Thread Ajit Ghaisas
On Thu, 9 Feb 2023 14:40:15 GMT, Karthik P K 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 fo

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

2023-02-10 Thread John Hendrikx
On Thu, 9 Feb 2023 14:40:15 GMT, Karthik P K 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 fo

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

2023-02-09 Thread Karthik P K
On Thu, 9 Feb 2023 14:40:15 GMT, Karthik P K 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 fo

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

2023-02-09 Thread Andy Goryachev
On Mon, 6 Feb 2023 14:23:38 GMT, Karthik P K wrote: >> Both `computePrefHeight()` and `computePrefWidth` can be restructured to >> avoid unnecessary computation (especially since these are very popular >> objects). >> >> My point is that, for example, textWidth on line 375 (used to compute >>

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

2023-02-09 Thread Andy Goryachev
On Thu, 9 Feb 2023 14:40:15 GMT, Karthik P K 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 fo

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

2023-02-09 Thread Karthik P K
On Wed, 8 Feb 2023 19:57:46 GMT, Andy Goryachev wrote: >> Previously both `textWidth` and `graphicWidth` were calculated regardless of >> the condition. In the updated code calculation of `graphicWidth` is moved to >> `else` block so that one unnecessary calculation is avoided. Since >> `textW

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

2023-02-09 Thread Karthik P K
> 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 >

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

2023-02-09 Thread Karthik P K
On Wed, 8 Feb 2023 20:03:05 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Addressing review comments > > For your convenience, I've added a Label page to the monkey tester > https://github.com/

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

2023-02-08 Thread Andy Goryachev
On Wed, 8 Feb 2023 12:46:15 GMT, Karthik P K wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/LabeledSkinBase.java >> line 328: >> >>> 326: } >>> 327: >>> 328: double textWidth = emptyText ? 0.0 : >>> Utils.computeTextWidth(font, cleanText, 0); >> >>

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

2023-02-08 Thread Andy Goryachev
On Wed, 8 Feb 2023 12:19:34 GMT, Karthik P K 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 fo

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

2023-02-08 Thread Karthik P K
On Tue, 7 Feb 2023 20:06:27 GMT, Andy Goryachev 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 >

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

2023-02-08 Thread Karthik P K
On Tue, 7 Feb 2023 19:57:00 GMT, Andy Goryachev 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 >

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

2023-02-08 Thread Karthik P K
On Tue, 7 Feb 2023 19:47:50 GMT, Andy Goryachev 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 >

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

2023-02-08 Thread Karthik P K
> 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 >

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

2023-02-07 Thread Andy Goryachev
On Tue, 7 Feb 2023 05:25:08 GMT, Karthik P K 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 fo

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

2023-02-07 Thread Andy Goryachev
On Tue, 7 Feb 2023 05:25:08 GMT, Karthik P K 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 fo

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

2023-02-07 Thread John Hendrikx
On Tue, 7 Feb 2023 05:25:08 GMT, Karthik P K 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 fo

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

2023-02-06 Thread Karthik P K
On Mon, 6 Feb 2023 22:50:30 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Code optimization > > modules/javafx.controls/src/main/java/javafx/scene/control/skin/LabeledSkinBase.java > line 331:

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

2023-02-06 Thread Karthik P K
> 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 >

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

2023-02-06 Thread John Hendrikx
On Mon, 6 Feb 2023 13:33:20 GMT, Karthik P K 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 fo

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

2023-02-06 Thread Karthik P K
On Fri, 3 Feb 2023 18:04:09 GMT, Andy Goryachev wrote: >> Not sure if I didn't understand your comments properly but I'm guessing you >> are referring to `textHeight` and `graphicHeight` calculation in line 375 >> and 380 because the line numbers you mentioned are in `computePrefWidth` >> meth

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

2023-02-06 Thread Karthik P K
> 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 >

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

2023-02-03 Thread Andy Goryachev
On Fri, 3 Feb 2023 05:56:32 GMT, Karthik P K wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/LabeledSkinBase.java >> line 402: >> >>> 400: } >>> 401: >>> 402: return height + padding; >> >> My only comment is possibly reorganize the logic to avoid un

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

2023-02-02 Thread Karthik P K
On Thu, 2 Feb 2023 16:54:28 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use width while calling prefHeight method. Use graphicHeight instead of >> multiple calls to prefHeight > > modules/ja

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

2023-02-02 Thread Andy Goryachev
On Wed, 18 Jan 2023 06:56:57 GMT, Karthik P K 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 f

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

2023-02-02 Thread John Hendrikx
On Wed, 18 Jan 2023 06:56:57 GMT, Karthik P K 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 f

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

2023-02-01 Thread Karthik P K
On Wed, 18 Jan 2023 06:56:57 GMT, Karthik P K 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 f

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

2023-02-01 Thread Karthik P K
On Tue, 17 Jan 2023 11:40:47 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use width while calling prefHeight method. Use graphicHeight instead of >> multiple calls to prefHeight > > modules/ja

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

2023-02-01 Thread Ajit Ghaisas
On Wed, 18 Jan 2023 06:56:57 GMT, Karthik P K 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 f

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

2023-01-18 Thread Karthik P K
On Wed, 18 Jan 2023 06:56:57 GMT, Karthik P K 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 f

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

2023-01-17 Thread Karthik P K
On Tue, 17 Jan 2023 11:40:47 GMT, John Hendrikx wrote: > The logic of this code seems to have changed more than just the fixing bug. > Why are the `prefHeight` functions now called with `-1`? Normally these > should respect the content bias of the node involved. > I used `-1` while calling `p

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

2023-01-17 Thread Karthik P K
> 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 >

Re: RFR: 8230833: LabeledSkinBase computes wrong height with ContentDisplay.GRAPHIC_ONLY

2023-01-17 Thread John Hendrikx
On Mon, 16 Jan 2023 10:46:12 GMT, Karthik P K 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

RFR: 8230833: LabeledSkinBase computes wrong height with ContentDisplay.GRAPHIC_ONLY

2023-01-16 Thread Karthik P K
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