Re: RFR: 8299753: Tree/TableView: Column Resizing With Fractional Scale

2024-06-27 Thread Karthik P K
On Thu, 15 Jun 2023 19:38:00 GMT, Andy Goryachev wrote: > Modified the resize algorithm to work well with fractional scale, thanks for > deeper understanding of the problem thanks to @hjohn and @mstr2 . > > Removed earlier manual tester in favor of the monkey tester. > > It is important to no

Re: RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode [v2]

2024-06-07 Thread Karthik P K
On Thu, 6 Jun 2024 23:47:44 GMT, Andy Goryachev wrote: >> I'm having some doubts about the solution still. It is mentioned that this >> problem can occur in text containing both LTR and RTL text together, >> however, as far as I can see, a `TextRun` never contains a mix of text >> directions.

Re: RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode [v3]

2024-06-07 Thread Karthik P K
On Thu, 6 Jun 2024 16:53:47 GMT, Andy Goryachev wrote: > The code to reproduce was > > ``` > flow = new TextFlow( > t("Arabic:", Color.RED), > t(" ", Color.YELLOW), > t("العربية", Color.GREEN), > new Text("\n"), >

Re: RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode [v3]

2024-06-06 Thread Karthik P K
. > > Made changes in `getPosX` of `TextRun` class to handle negative values. > > Tested the changes manually with the sample code present in the bug and using > the MonkeyTester. Karthik P K has updated the pull request incrementally with one additional commit

Re: RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode

2024-06-06 Thread Karthik P K
On Fri, 31 May 2024 14:39:00 GMT, Karthik P K wrote: > The issue is specific to Mac. The glyph positions returned from native side > for complex text is not handled in the text render logic. This issue is > observed only when trailing spaces are present along with LTR text mixed wi

Re: RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode [v2]

2024-06-06 Thread Karthik P K
. > > Made changes in `getPosX` of `TextRun` class to handle negative values. > > Tested the changes manually with the sample code present in the bug and using > the MonkeyTester. Karthik P K has updated the pull request incrementally with one additional commit since the

Re: RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode

2024-06-03 Thread Karthik P K
On Sat, 1 Jun 2024 04:53:48 GMT, John Hendrikx wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/text/TextRun.java line >> 332: >> >>> 330: return x; >>> 331: } >>> 332: int prevIdx = (glyphIndex - 1)<<1; >> >> would it be possible to add a

Re: RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode

2024-06-03 Thread Karthik P K
On Fri, 31 May 2024 17:21:56 GMT, Andy Goryachev wrote: > Seems to work with the example in the ticket and the TextArea in the Monkey > Tester. No ill effects on Windows. (Did not test it on Linux) > I tested the issue on Linux. It is not reproducible. So this is specific to Mac only. > Could

RFR: 8330559: Trailing space not rendering correctly in TextFlow in RTL mode

2024-05-31 Thread Karthik P K
The issue is specific to Mac. The glyph positions returned from native side for complex text is not handled in the text render logic. This issue is observed only when trailing spaces are present along with LTR text mixed with RTL text (Example: "Arabic: العربية"). Made changes in `getPosX` of `

Re: RFR: 8332222: Linux Debian: Maximized stage shrinks when opening another stage [v3]

2024-05-24 Thread Karthik P K
On Thu, 23 May 2024 10:53:36 GMT, Thiago Milczarek Sayao wrote: >> This fixes two bugs appointed on the JBS issue: >> >> 1) Sometimes window was moving to the top left corner - seems to be a bug >> somewhere in `gdk_window_get_origin` when used before map (a X concept when >> the window appea

Re: RFR: 8332222: Linux Debian: Maximized stage shrinks when opening another stage

2024-05-22 Thread Karthik P K
On Wed, 22 May 2024 21:28:47 GMT, Thiago Milczarek Sayao wrote: > This fixes two bugs appointed on the JBS issue: > > 1) Sometimes window was moving to the top left corner - seems to be a bug > somewhere in `gdk_window_get_origin` when used before map (a X concept when > the window appears).

Re: RFR: 8330590: TextInputControl: previous word fails with Bhojpuri characters [v3]

2024-05-17 Thread Karthik P K
On Fri, 17 May 2024 15:36:27 GMT, Andy Goryachev wrote: >> This change replaces Character.isLetterOrDigit(char) which fails with >> surrogate characters with Character.isLetterOrDigit(int). > > Andy Goryachev has updated the pull request with a new target base due to a > merge or a rebase. The

Integrated: 8279140: ComboBox can lose selected value on item change via setAll

2024-05-15 Thread Karthik P K
On Tue, 7 May 2024 10:10:23 GMT, Karthik P K wrote: > The `ComboBox` value was not set to previously selected value in the item > list change listener when `setAll` method is used to change the items. Fixed > the issue by restoring the selection in this case. > > Added a unit t

Re: RFR: 8279140: ComboBox can lose selected value on item change via setAll [v2]

2024-05-15 Thread Karthik P K
On Tue, 14 May 2024 22:27:25 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix JDK-8279139 > > It looks like we have quite a few bugs related to different aspect

Re: RFR: 8279140: ComboBox can lose selected value on item change via setAll [v2]

2024-05-14 Thread Karthik P K
On Thu, 9 May 2024 09:38:31 GMT, Karthik P K wrote: >> The `ComboBox` value was not set to previously selected value in the item >> list change listener when `setAll` method is used to change the items. Fixed >> the issue by restoring the selection in this case. >>

Re: RFR: 8279140: ComboBox can lose selected value on item change via setAll [v2]

2024-05-09 Thread Karthik P K
//bugs.openjdk.org/browse/JDK-8279139) is also fixed with > this change and added a unit test for the same. Karthik P K has updated the pull request incrementally with one additional commit since the last revision: Fix JDK-8279139 - Changes: - all: https://git.openjdk.org/jfx/pu

Re: RFR: 8092102: Labeled: textTruncated property [v16]

2024-05-07 Thread Karthik P K
On Tue, 7 May 2024 15:46:18 GMT, Andy Goryachev wrote: >> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property is being set by the code which computes

Re: RFR: 8092102: Labeled: textTruncated property [v15]

2024-05-07 Thread Karthik P K
On Tue, 7 May 2024 14:56:57 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/skin/Utils.java >> line 218: >> >>> 216: * Computes the actual text to be shown in the Labeled with the >>> text wrapping disabled: >>> 217: * unmodified if it

Re: RFR: 8092102: Labeled: textTruncated property [v15]

2024-05-07 Thread Karthik P K
On Mon, 6 May 2024 15:23:20 GMT, Andy Goryachev wrote: >> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property is being set by the code which computes

Re: RFR: 8279140: ComboBox can lose selected value on item change via setAll

2024-05-07 Thread Karthik P K
On Tue, 7 May 2024 10:10:23 GMT, Karthik P K wrote: > The `ComboBox` value was not set to previously selected value in the item > list change listener when `setAll` method is used to change the item list. > Fixed the issue by restoring the selection in this case. > > Added

RFR: 8279140: ComboBox can lose selected value on item change via setAll

2024-05-07 Thread Karthik P K
The `ComboBox` value was not set to previously selected value in the item list change listener when `setAll` method is used to change the item list. Fixed the issue by restoring the selection in this case. Added a unit test to validate the fix - Commit messages: - Fix item selecti

Re: RFR: 8330590: TextInputControl: previous word fails with Bhojpuri characters [v2]

2024-04-30 Thread Karthik P K
On Mon, 29 Apr 2024 21:27:41 GMT, Andy Goryachev wrote: > If I were to fix the behavior (if we decide to fix the behavior of the > nextWord function, that is), I would make it consistent with MS Word, but > let's discuss. > The behaviour in MS word looks to be easy to understand and what we wo

Re: RFR: 8330590: TextInputControl: previous word fails with Bhojpuri characters [v2]

2024-04-29 Thread Karthik P K
On Fri, 19 Apr 2024 20:36:42 GMT, Andy Goryachev wrote: >> This change replaces Character.isLetterOrDigit(char) which fails with >> surrogate characters with Character.isLetterOrDigit(int). > > Andy Goryachev has updated the pull request with a new target base due to a > merge or a rebase. The

Integrated: 8273657 : TextField: all text content must be selected initially

2024-04-26 Thread Karthik P K
On Thu, 25 Apr 2024 14:26:06 GMT, Karthik P K wrote: > The text was not getting selected on adding the `TextField` to the scene > initially, subsequently removing and adding the `TextField` to the scene > selects the entire text present in the `TextField`. > > Made

RFR: 8273657 : TextField: all text content must be selected initially

2024-04-25 Thread Karthik P K
The text was not getting selected on adding the `TextField` to the scene initially, subsequently removing and adding the `TextField` to the scene selects the entire text present in the `TextField`. Made changes in the `TextFieldBehavior` constructor to select the text on adding the `TextField`

Re: RFR: 8314215: Trailing Spaces before Line Breaks Affect the Center Alignment of Text [v18]

2024-04-24 Thread Karthik P K
On Tue, 23 Apr 2024 19:30:49 GMT, John Hendrikx wrote: >> There are a number of tickets open related to text rendering: >> >> https://bugs.openjdk.org/browse/JDK-8314215 >> >> https://bugs.openjdk.org/browse/JDK-8145496 >> >> https://bugs.openjdk.org/browse/JDK-8129014 >> >> They have in comm

Re: RFR: 8314215: Trailing Spaces before Line Breaks Affect the Center Alignment of Text [v15]

2024-04-23 Thread Karthik P K
On Mon, 12 Feb 2024 10:00:57 GMT, Karthik P K wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Change test to use the more common Arial font and add assumptions > > I ran the tests in

Re: RFR: 8328577: Toolbar's overflow button overlaps the items [v6]

2024-04-22 Thread Karthik P K
On Mon, 15 Apr 2024 15:41:19 GMT, eduardsdv wrote: >> This change fixes the calculation of which nodes go to the toolbar and which >> go to the overflow menu. >> It is now determined before the nodes are removed from the scene graph. >> This is important because the values returned by >> ``Node

Re: RFR: 8328577: Toolbar's overflow button overlaps the items [v6]

2024-04-19 Thread Karthik P K
On Fri, 19 Apr 2024 16:14:27 GMT, Andy Goryachev wrote: >> So, none of them can be reproduced on windows, only on mac. >> >> The #2 can be reproduced in the version before PR and after PR. >> >> The #3 is reproducible only with PR changes and in my opinion an other bug >> in JavaFX, which is m

Re: RFR: 8328577: Toolbar's overflow button overlaps the items [v6]

2024-04-19 Thread Karthik P K
On Mon, 15 Apr 2024 15:41:19 GMT, eduardsdv wrote: >> This change fixes the calculation of which nodes go to the toolbar and which >> go to the overflow menu. >> It is now determined before the nodes are removed from the scene graph. >> This is important because the values returned by >> ``Node

Re: RFR: 8328577: Toolbar's overflow button overlaps the items [v6]

2024-04-19 Thread Karthik P K
On Mon, 15 Apr 2024 15:41:19 GMT, eduardsdv wrote: >> This change fixes the calculation of which nodes go to the toolbar and which >> go to the overflow menu. >> It is now determined before the nodes are removed from the scene graph. >> This is important because the values returned by >> ``Node

Re: RFR: 8242553: IntegerSpinner and DoubleSpinner do not wrap around values correctly in some cases [v2]

2024-04-16 Thread Karthik P K
On Wed, 10 Apr 2024 11:47:28 GMT, drmarmac wrote: >> This PR should fix the issue and cover all relevant cases with new tests. >> >> Note: This involves a small behavior change, as can be seen in >> dblSpinner_testWrapAround_decrement_twoSteps() in SpinnerTest.java:749. With >> this change the

Re: RFR: 8092102: Labeled: truncated property [v9]

2024-04-15 Thread Karthik P K
On Wed, 10 Apr 2024 21:25:10 GMT, Andy Goryachev wrote: >> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property reacts to changes in the following prop

Re: RFR: 8092102: Labeled: truncated property [v8]

2024-04-15 Thread Karthik P K
On Wed, 10 Apr 2024 21:28:16 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/LabeledHelper.java >> line 38: >> >>> 36: /** >>> 37: * Returns true when the Labeled must compute the actual >>> content width in computePrefWidth().

Re: RFR: 8092102: Labeled: truncated property [v8]

2024-04-10 Thread Karthik P K
On Thu, 28 Mar 2024 21:44:49 GMT, Andy Goryachev wrote: >> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property reacts to changes in the following prop

Re: RFR: 8328754: Fix missing @Overrides in test [v2]

2024-03-28 Thread Karthik P K
On Thu, 28 Mar 2024 14:54:47 GMT, Andy Goryachev wrote: >> Fixing missing @ OVERRIDES in tests. >> >> This is still a trivial change since all the spots are identified by the IDE. > > Andy Goryachev has updated the pull request with a new target base due to a > merge or a rebase. The incrementa

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v3]

2024-03-28 Thread Karthik P K
On Thu, 28 Mar 2024 08:49:44 GMT, drmarmac wrote: >> This PR removes potentially incorrect usages of Stream.peek(). >> The changed code should be covered by the tests that are already present. > > drmarmac has updated the pull request incrementally with two additional > commits since the last re

Re: RFR: 8328754: Fix missing @Overrides in test

2024-03-28 Thread Karthik P K
On Fri, 22 Mar 2024 15:55:35 GMT, Andy Goryachev wrote: > Fixing missing @ OVERRIDES in tests. > > This is still a trivial change since all the spots are identified by the IDE. Changes looks good. Found few file where `@Override` can be added for `start` method. 1. `BigGlyphIDTest.java` 2. `IN

Re: RFR: 8328746: Remove unused imports in demo apps

2024-03-28 Thread Karthik P K
On Thu, 21 Mar 2024 21:50:37 GMT, Andy Goryachev wrote: > Using Eclipse IDE to remove unused imports in **demo apps** (3D, Ensemble, > etc.) and update the copyright year to 2024. Using wildcard for more than 10 > static imports. > > > -- > > This is a trivial change (though fairly large), 1

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v2]

2024-03-27 Thread Karthik P K
On Wed, 27 Mar 2024 23:21:34 GMT, Nir Lisker wrote: >> `forEach` is void, so we can not return a list afterwards. > > You don't need to return a list, you create it ahead of time like was done in > line 167 > > List indices = new ArrayList<>(); > > and the add the elements in `forEach`. > Why

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed [v2]

2024-03-27 Thread Karthik P K
On Wed, 27 Mar 2024 23:24:51 GMT, Marius Hanl wrote: >>> In the java.util.stream package >>> [docs](https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/util/stream/package-summary.html#SideEffects) >>> it is mentioned that `forEach()` method operates only via side-effects. So >>>

Re: RFR: 8316372: Monkey Tester Application Part 3 [v7]

2024-03-26 Thread Karthik P K
On Mon, 25 Mar 2024 22:36:48 GMT, Andy Goryachev wrote: >> Further changes to the MonkeyTester application: >> >> - remember split pane divider ✔ >> - use 'private' instead of 'protected' in many cases ✔ >> - added more scripts to the 'writing systems' text sample ✔ >> - added RTL window control

Re: RFR: 8273349: Check uses of Stream::peek in controls and replace as needed

2024-03-26 Thread Karthik P K
On Sun, 24 Mar 2024 15:10:22 GMT, drmarmac wrote: > This PR removes potentially incorrect usages of Stream.peek(). > The changed code should be covered by the tests that are already present. modules/javafx.controls/src/main/java/javafx/scene/control/ControlUtils.java line 176: > 174:

Re: RFR: 8316372: Monkey Tester Application Part 3 [v7]

2024-03-26 Thread Karthik P K
On Mon, 25 Mar 2024 22:36:48 GMT, Andy Goryachev wrote: >> Further changes to the MonkeyTester application: >> >> - remember split pane divider ✔ >> - use 'private' instead of 'protected' in many cases ✔ >> - added more scripts to the 'writing systems' text sample ✔ >> - added RTL window control

Re: RFR: 8316372: Monkey Tester Application Part 3 [v2]

2024-03-25 Thread Karthik P K
On Fri, 22 Mar 2024 18:23:41 GMT, Andy Goryachev wrote: > > * In all the pages, under Region option, if we select MAX_VALUE for Min > > Height or Min Width, the application hangs or whole window becomes white. I > > observed this issue if we select MIN_VALUE or POSITIVE_INFINITY as well. > > w

Re: RFR: 8316372: Monkey Tester Application Part 3 [v2]

2024-03-22 Thread Karthik P K
On Wed, 20 Mar 2024 23:56:50 GMT, Andy Goryachev wrote: >> Further changes to the MonkeyTester application: >> >> - remember split pane divider ✔ >> - use 'private' instead of 'protected' in many cases ✔ >> - added more scripts to the 'writing systems' text sample ✔ >> - added RTL window control

Integrated: 8328667: [Testbug] Enable ignored Spinner unit tests

2024-03-21 Thread Karthik P K
On Thu, 21 Mar 2024 07:18:28 GMT, Karthik P K wrote: > Enabled a test in `SpinnerTest` class. > Added comment to the editing test, why it can not be enabled. When Spinner > value is set using `getEditor` `setText` method, the listener added to the > spinner is not invoked. There i

Re: RFR: 8328667: [Testbug] Enable ignored Spinner unit tests [v2]

2024-03-21 Thread Karthik P K
On Thu, 21 Mar 2024 12:54:05 GMT, Kevin Rushforth wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add bug id to ignore comment > > modules/javafx.controls/src/test/java/test/javafx/

Re: RFR: 8328667: [Testbug] Enable ignored Spinner unit tests [v2]

2024-03-21 Thread Karthik P K
; the expectation in this case. > Other set of tests which are ignored are `LocalTimeSpinnerValueFactory` > tests. Since these tests are unstable and fail only at certain time of the > day, not enabling this test as well. Karthik P K has updated the pull request incrementally with one addi

RFR: 8328667: [Testbug] Enable ignored Spinner unit tests

2024-03-21 Thread Karthik P K
Enabled a test in `SpinnerTest` class. Added comment to the editing test, why it can not be enabled. When Spinner value is set using `getEditor` `setText` method, the listener added to the spinner is not invoked. There is no bug for this issue. I'm not sure about the expectation in this case. Ot

Re: RFR: 8207379: Robot screen capture test fails with HiDPI at some screen locations [v2]

2024-03-19 Thread Karthik P K
On Tue, 19 Mar 2024 21:37:50 GMT, Kevin Rushforth wrote: > I also suspect that Karthik was running in that mode. You can check the value > of the `XDG_SESSION_TYPE` env var to see. All robot tests that read the > screen will fail on Wayland until > [JDK-8326712](https://bugs.openjdk.org/browse

Re: RFR: 8207379: Robot screen capture test fails with HiDPI at some screen locations [v2]

2024-03-19 Thread Karthik P K
On Tue, 19 Mar 2024 13:16:48 GMT, Lukasz Kostyra wrote: >> There were two different problems with this test's stability and HiDPI and >> both were fixed with this change. >> >> The whole reason for this tests lack of stability comes with how Windows >> calculates window position when using HiD

Integrated: 8327471: RTLTextFlowCharacterIndexTest fails on Linux

2024-03-18 Thread Karthik P K
On Wed, 13 Mar 2024 05:17:40 GMT, Karthik P K wrote: > Because of the difference in the size of characters in default fonts in > different OS, 2 tests were failing in `RTLTextFlowCharacterIndexTest`. > > Increased the scene width to accommodate all the characters as required for &

Re: RFR: 8327471: RTLTextFlowCharacterIndexTest fails on Linux [v2]

2024-03-17 Thread Karthik P K
On Thu, 14 Mar 2024 10:37:26 GMT, Karthik P K wrote: >> Because of the difference in the size of characters in default fonts in >> different OS, 2 tests were failing in `RTLTextFlowCharacterIndexTest`. >> >> Increased the scene width to accommodate all the characters

Re: RFR: 8327471: RTLTextFlowCharacterIndexTest fails on Linux [v2]

2024-03-16 Thread Karthik P K
On Thu, 14 Mar 2024 10:37:26 GMT, Karthik P K wrote: >> Because of the difference in the size of characters in default fonts in >> different OS, 2 tests were failing in `RTLTextFlowCharacterIndexTest`. >> >> Increased the scene width to accommodate all the characters

Re: RFR: 8207379: Robot screen capture test fails with HiDPI at some screen locations

2024-03-15 Thread Karthik P K
On Thu, 14 Mar 2024 16:06:55 GMT, Lukasz Kostyra wrote: > There were two different problems with this test's stability and HiDPI and > both were fixed with this change. > > The whole reason for this tests lack of stability comes with how Windows > calculates window position when using HiDPI. W

Re: RFR: 8327471: RTLTextFlowCharacterIndexTest fails on Linux [v2]

2024-03-14 Thread Karthik P K
On Wed, 13 Mar 2024 16:30:27 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments > > tests/system/src/test/java/test/robot/javafx/scene/RTLTextFlowChara

Re: RFR: 8327471: RTLTextFlowCharacterIndexTest fails on Linux [v2]

2024-03-14 Thread Karthik P K
forms. Karthik P K has updated the pull request incrementally with one additional commit since the last revision: Review comments - Changes: - all: https://git.openjdk.org/jfx/pull/1399/files - new: https://git.openjdk.org/jfx/pull/1399/files/cdf341fc..06c81170 Webrevs:

RFR: 8327471: RTLTextFlowCharacterIndexTest fails on Linux

2024-03-12 Thread Karthik P K
Because of the difference in the size of characters in default fonts in different OS, 2 tests were failing in `RTLTextFlowCharacterIndexTest`. Increased the scene width to accommodate all the characters as required for the test to validate HitInfo values in all the platforms. - Com

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v15]

2024-03-05 Thread Karthik P K
On Tue, 5 Mar 2024 15:34:36 GMT, Andy Goryachev wrote: >>> P.S. Tested on on macOS 14.3.1. The results on Windows/Linux should be >>> identical, but if we can get some testing done on these two platforms that >>> would be nice. >> >> I tested the changes in windows and do not see any issues.

Re: RFR: 8092102: Labeled: truncated property

2024-03-05 Thread Karthik P K
On Mon, 4 Mar 2024 21:04:28 GMT, Andy Goryachev wrote: > Adds Labeled.truncated property which indicates when the text is visually > truncated (and the ellipsis string is inserted) in order to fit the available > width. > > The new property reacts to changes in the following properties: > - el

Re: RFR: JDK-8325402: TreeTableRow updateItem() does not check item with isItemChanged(..) unlike all other cell implementations [v2]

2024-03-04 Thread Karthik P K
On Sat, 24 Feb 2024 17:38:11 GMT, Marius Hanl wrote: >> `TreeTableRow` does not check the item with `isItemChanged(..)`, unlike all >> other implementations of the cell. >> >> This also means that the `TreeTableRow` always updates the item, although it >> should not, resulting in a performance

Integrated: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation

2024-03-04 Thread Karthik P K
On Tue, 9 Jan 2024 07:31:51 GMT, Karthik P K wrote: > In the `getHitInfo()` method of PrismTextLayout, RTL node orientation > conditions were not considered, hence hit test values such as character index > and insertion index values were incorrect. > > Added checks for RTL

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v13]

2024-03-04 Thread Karthik P K
On Thu, 29 Feb 2024 17:33:14 GMT, John Hendrikx wrote: >> @hjohn how do you get this coverage diagram? >> >> The BreakIterator is a part of the existing code, we should probably have >> this discussion outside of this PR. I agree, there might be a situation >> when the app wants to select a s

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v16]

2024-03-04 Thread Karthik P K
On Thu, 29 Feb 2024 12:12:01 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments > > modules/javafx.graphics/src/main/java/javafx/scene/text/T

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v17]

2024-03-04 Thread Karthik P K
`getHitInfo()` to calculate correct hit test values. > > Added system tests to validate the changes. Karthik P K has updated the pull request incrementally with one additional commit since the last revision: Add unit test - Changes: - all: https://git.openjdk.org/jfx/pull/1

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v15]

2024-02-28 Thread Karthik P K
On Thu, 29 Feb 2024 00:27:33 GMT, Andy Goryachev wrote: > P.S. Tested on on macOS 14.3.1. The results on Windows/Linux should be > identical, but if we can get some testing done on these two platforms that > would be nice. I tested the changes in windows and do not see any issues. I have exec

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v16]

2024-02-28 Thread Karthik P K
`getHitInfo()` to calculate correct hit test values. > > Added system tests to validate the changes. Karthik P K has updated the pull request incrementally with one additional commit since the last revision: Review comments - Changes: - all: https://git.openjdk.org/jfx/pull/1

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v15]

2024-02-28 Thread Karthik P K
`getHitInfo()` to calculate correct hit test values. > > Added system tests to validate the changes. Karthik P K has updated the pull request incrementally with one additional commit since the last revision: Simplified approach - Changes: - all: https://git.openjdk.org/jfx

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v14]

2024-02-28 Thread Karthik P K
On Tue, 27 Feb 2024 16:18:31 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix repeating text node issue > > So, I looked into the mirroring problem as well. I

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v13]

2024-02-27 Thread Karthik P K
On Tue, 27 Feb 2024 05:09:20 GMT, Karthik P K wrote: >> yes, this bothered me from the start. I did have a test case in the MT with >> two text nodes with the same text, and it seemed to work correctly. or did >> I miss something? > > Actually most of the repeating t

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v14]

2024-02-27 Thread Karthik P K
`getHitInfo()` to calculate correct hit test values. > > Added system tests to validate the changes. Karthik P K has updated the pull request incrementally with one additional commit since the last revision: Fix repeating text node issue - Changes: - all: https://git.openjdk

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v13]

2024-02-27 Thread Karthik P K
On Mon, 26 Feb 2024 11:35:06 GMT, Karthik P K wrote: >> tests/system/src/test/java/test/robot/javafx/scene/RTLTextFlowCharacterIndexTest.java >> line 238: >> >>> 236: >>> 237: @Test >>> 238: public void testTextAndTextFlowHitInfoForRTLE

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v13]

2024-02-26 Thread Karthik P K
On Mon, 26 Feb 2024 16:22:56 GMT, Andy Goryachev wrote: >> You are right. It fails when there are repeated text nodes. I will look into >> this > > yes, this bothered me from the start. I did have a test case in the MT with > two text nodes with the same text, and it seemed to work correctly.

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v13]

2024-02-26 Thread Karthik P K
On Sun, 25 Feb 2024 13:16:06 GMT, John Hendrikx wrote: >> Karthik P K 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 13 addi

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v13]

2024-02-26 Thread Karthik P K
On Sat, 24 Feb 2024 23:00:43 GMT, John Hendrikx wrote: >> Karthik P K 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 13 addi

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v13]

2024-02-25 Thread Karthik P K
On Sat, 24 Feb 2024 22:44:05 GMT, John Hendrikx wrote: > The character index, even in your example image above, seems to be relative > to the `Text`, not to the `TextFlow` (it is 0, even though there are clearly > 10 characters before it belonging to another `Text`), so what exactly do you > m

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-23 Thread Karthik P K
On Thu, 22 Feb 2024 10:33:38 GMT, Karthik P K wrote: >> A valid concern about specific fonts, similar to >> https://github.com/openjdk/jfx/pull/1236#issuecomment-1937022815 >> >> What was the resolution there? To use a hard-coded font based on the >> platform,

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-22 Thread Karthik P K
On Tue, 20 Feb 2024 15:48:26 GMT, Andy Goryachev wrote: >> I see that the tests don't run on all the platforms. I will look into this >> and update the PR > > A valid concern about specific fonts, similar to > https://github.com/openjdk/jfx/pull/1236#issuecomment-1937022815 > > What was the re

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-21 Thread Karthik P K
On Wed, 21 Feb 2024 18:59:02 GMT, John Hendrikx wrote: > I'm unclear on this part, do you mean it's possible that multiple `Text` > objects could be hit at the same time? There should only be one `TextRun` at > a certain x/y coordinate right? > Yes there will be one TextRun at a certain x/y co

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-21 Thread Karthik P K
On Mon, 19 Feb 2024 14:32:36 GMT, John Hendrikx wrote: > To determine the runStart/runEnd, `Text` is already analyzing the runs (and > doing coordinate tests on them). Runs however have locations, with x/y > coordinates. Would it not be possible, and more sensible, to adjust the `x`, > `y` coo

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v13]

2024-02-21 Thread Karthik P K
`getHitInfo()` to calculate correct hit test values. > > Added system tests to validate the changes. Karthik P K 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 reques

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-19 Thread Karthik P K
On Mon, 19 Feb 2024 14:32:36 GMT, John Hendrikx wrote: >Okay, so let me summarize (and let me know if that's correct) @hjohn you have summarised it correctly. I understood your concern and thanks for explaining your suggestion it in details. I will look into this approach and get back to you.

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-19 Thread Karthik P K
On Thu, 15 Feb 2024 10:36:51 GMT, Karthik P K wrote: >> I think we should simplify the `getHitInfo` method in the `TextLayout` >> interface. >> >> The code currently seems to be making distinctions where there are none. >> `TextFlow`s provide spans, while `Text

Re: RFR: 8322748: Caret blinking in JavaFX should only stop when caret moves [v2]

2024-02-19 Thread Karthik P K
On Thu, 15 Feb 2024 17:29:10 GMT, Andy Goryachev wrote: >> Move caret animation handling due to keyboard input to the Skin, by >> registering a listener on the caretPosition property. This will restart >> animation only when the caret position changes instead of every key press. >> >> This al

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-19 Thread Karthik P K
On Wed, 14 Feb 2024 04:39:04 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments > > modules/javafx.graphics/src/main/java/com/sun/javafx/text/Pr

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-19 Thread Karthik P K
On Wed, 14 Feb 2024 04:33:00 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments > > modules/javafx.graphics/src/main/java/com/sun/javafx/text/Pr

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-19 Thread Karthik P K
On Wed, 14 Feb 2024 04:27:42 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments > > modules/javafx.graphics/src/main/java/com/sun/javafx/scene/te

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v12]

2024-02-19 Thread Karthik P K
`getHitInfo()` to calculate correct hit test values. > > Added system tests to validate the changes. Karthik P K has updated the pull request incrementally with one additional commit since the last revision: Code refactoring - Changes: - all: https://git.openjdk.org/jfx/pull/1

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-15 Thread Karthik P K
On Wed, 14 Feb 2024 05:27:19 GMT, John Hendrikx wrote: > I think we should simplify the `getHitInfo` method in the `TextLayout` > interface. > > The code currently seems to be making distinctions where there are none. > `TextFlow`s provide spans, while `Text`s provide a text. `getHitInfo` can

Re: RFR: JDK-8314215 Trailing Spaces before Line Breaks Affect the Center Alignment of Text [v15]

2024-02-12 Thread Karthik P K
On Sat, 10 Feb 2024 17:24:17 GMT, John Hendrikx wrote: >> There are a number of tickets open related to text rendering: >> >> https://bugs.openjdk.org/browse/JDK-8314215 >> >> https://bugs.openjdk.org/browse/JDK-8145496 >> >> https://bugs.openjdk.org/browse/JDK-8129014 >> >> They have in comm

Re: RFR: JDK-8314215 Trailing Spaces before Line Breaks Affect the Center Alignment of Text [v12]

2024-02-12 Thread Karthik P K
On Fri, 9 Feb 2024 17:33:04 GMT, Andy Goryachev wrote: >> John Hendrikx has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Add some clarifying documentation >> - Do not collapse trailing spaces of last line (where no soft wrap occurs) >

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v10]

2024-02-11 Thread Karthik P K
On Thu, 8 Feb 2024 18:22:28 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix emoji issue > > @hjohn this might impact your work in #1236 - would you like to take

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v10]

2024-02-09 Thread Karthik P K
On Thu, 8 Feb 2024 18:13:58 GMT, Andy Goryachev wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix emoji issue > > modules/javafx.graphics/src/main/java/com/sun/javafx/text/Pr

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v11]

2024-02-09 Thread Karthik P K
`getHitInfo()` to calculate correct hit test values. > > Added system tests to validate the changes. Karthik P K has updated the pull request incrementally with one additional commit since the last revision: Review comments - Changes: - all: https://git.openjdk.org/jfx/pull/1

Re: RFR: 8307117: TextArea: wrapText property ignored when changing font [v3]

2024-02-08 Thread Karthik P K
On Wed, 7 Feb 2024 21:41:10 GMT, Andy Goryachev wrote: >> Requesting content layout when font changes. >> >> This change makes the visual impact of >> [JDK-8314683](https://bugs.openjdk.org/browse/JDK-8314683) more visible, so >> perhaps both bugs should be fixed at the same time. > > Andy Gor

Re: RFR: 8307117: TextArea: wrapText property ignored when changing font [v3]

2024-02-08 Thread Karthik P K
On Wed, 7 Feb 2024 21:41:10 GMT, Andy Goryachev wrote: >> Requesting content layout when font changes. >> >> This change makes the visual impact of >> [JDK-8314683](https://bugs.openjdk.org/browse/JDK-8314683) more visible, so >> perhaps both bugs should be fixed at the same time. > > Andy Gor

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v10]

2024-02-07 Thread Karthik P K
On Wed, 7 Feb 2024 23:43:41 GMT, Andy Goryachev wrote: > I see the emoji and tab text options work now, but inline nodes still fail. I don't see issue with inline nodes. Please let me know in which case you are facing issue. https://github.com/openjdk/jfx/assets/26969459/e926e7ad-1fd1-4cb8-af01

Re: RFR: 8307117: TextArea: wrapText property ignored when changing font

2024-02-07 Thread Karthik P K
On Wed, 7 Feb 2024 10:23:20 GMT, Ambarish Rapte wrote: >> Requesting content layout when font changes. >> >> This change makes the visual impact of >> [JDK-8314683](https://bugs.openjdk.org/browse/JDK-8314683) more visible, so >> perhaps both bugs should be fixed at the same time. > > With thi

Re: RFR: 8319844 : Text/TextFlow.hitTest() is incorrect in RTL orientation [v10]

2024-02-07 Thread Karthik P K
On Wed, 7 Feb 2024 10:43:12 GMT, Karthik P K wrote: >> In the `getHitInfo()` method of PrismTextLayout, RTL node orientation >> conditions were not considered, hence hit test values such as character >> index and insertion index values were incorrect. >> >> Added

  1   2   3   4   5   >