Re: RFR: 8178368: Right and Center alignment of text field works incorrectly [v4]

2023-02-16 Thread Karthik P K
On Fri, 10 Feb 2023 05:39:33 GMT, Karthik P K wrote: >> When Text width was more than TextField width, the logic to update >> `textTranslateX` in `updateCaretOff` method was causing the issue of >> unexpected behavior for Right and Center alignment. >> >> Made changes to update

Re: RFR: 8260528: Clean glass-gtk sizing and positioning code [v47]

2023-02-16 Thread Thiago Milczarek Sayao
On Mon, 13 Feb 2023 00:15:04 GMT, Thiago Milczarek Sayao wrote: >> This cleans size and positioning code, reducing special cases, code >> complexity and size. >> >> Changes: >> >> - cached extents: 28, 1, 1, 1 are old defaults - modern gnome uses different >> sizes. It does not assume any

Re: RFR: 8260528: Clean glass-gtk sizing and positioning code [v48]

2023-02-16 Thread Thiago Milczarek Sayao
> This cleans size and positioning code, reducing special cases, code > complexity and size. > > Changes: > > - cached extents: 28, 1, 1, 1 are old defaults - modern gnome uses different > sizes. It does not assume any size because it varies - it does cache because > it's unlikely to vary on

Re: RFR: 8302684 : Cherry-pick WebKit 615.1 stabilization fixes (2)

2023-02-16 Thread Kevin Rushforth
On Thu, 16 Feb 2023 19:29:26 GMT, Hima Bindu Meda wrote: > Stabilization fixes from Webkitgtk-2.38.5. > Verified drt and unit tests. No issues observed. Looks good. Testing is green. @tiainen or @johanvos could one of you be the second reviewer? - Marked as reviewed by kcr

Re: CFV: New OpenJFX Reviewer: Jose Pereda

2023-02-16 Thread Philip Race
Vote: yes -phil

Re: CFV: New OpenJFX Reviewer: Jose Pereda

2023-02-16 Thread Kevin Rushforth
Vote: YES -- Kevin On 2/16/2023 3:24 PM, Kevin Rushforth wrote: I hereby nominate Jose Pereda [1] to OpenJFX Reviewer.

CFV: New OpenJFX Reviewer: Jose Pereda

2023-02-16 Thread Kevin Rushforth
I hereby nominate Jose Pereda [1] to OpenJFX Reviewer. Jose is an OpenJFX community member, who has contributed 59 commits [2][3] to OpenJFX. Votes are due by March 2, 2023 at 23:59 UTC. Only current OpenJFX Reviewers [4] are eligible to vote on this nomination. Votes must be cast in the

Re: RFR: JDK-8302355: Public API for Toolkit.canStartNestedEventLoop() [v2]

2023-02-16 Thread Phil Race
On Thu, 16 Feb 2023 18:54:18 GMT, Kevin Rushforth wrote: >> @prrace What is your preference here? >> Since `enterNestedEventLoop` and `exitNestedEventLoop` throw an exception >> when not on the fx user thread, I feel like it makes sense to also add it >> here as well. > > Phil's comment got me

Re: RFR: JDK-8302355: Public API for Toolkit.canStartNestedEventLoop() [v2]

2023-02-16 Thread Kevin Rushforth
On Thu, 16 Feb 2023 21:48:08 GMT, Marius Hanl wrote: >> This PR adds the last missing method for dealing with nested event loops. >> As also written in the ticket, there is currently no (public) way to find >> out whether it is safe to start an event loop now or not. >> Classes like `Dialog`

Re: RFR: JDK-8302355: Public API for Toolkit.canStartNestedEventLoop() [v2]

2023-02-16 Thread Phil Race
On Wed, 15 Feb 2023 21:39:02 GMT, Kevin Rushforth wrote: >> Should I also adjust the `Toolkit` javadoc or only the `Platform` one? > > It might be a good idea to also adjust the Toolkit docs; it doesn't get > generated as javadoc, but could be useful for someone looking at the code. If > you

Re: RFR: JDK-8302355: Public API for Toolkit.canStartNestedEventLoop() [v2]

2023-02-16 Thread Kevin Rushforth
On Thu, 16 Feb 2023 18:25:23 GMT, Marius Hanl wrote: >> So someone is asking a question when they call this. >> Throwing an Exception could be considered an unfriendly way of answering it. >> It only makes sense if you think the programmer will have enough information >> to be sure that if S/HE

Re: RFR: JDK-8302355: Public API for Toolkit.canStartNestedEventLoop() [v2]

2023-02-16 Thread Marius Hanl
On Thu, 16 Feb 2023 03:45:28 GMT, Phil Race wrote: >> It might be a good idea to also adjust the Toolkit docs; it doesn't get >> generated as javadoc, but could be useful for someone looking at the code. >> If you do, it wouldn't be part of the CSR, since Toolkit isn't API. > > So someone is

Re: RFR: JDK-8302355: Public API for Toolkit.canStartNestedEventLoop() [v2]

2023-02-16 Thread Marius Hanl
> This PR adds the last missing method for dealing with nested event loops. > As also written in the ticket, there is currently no (public) way to find out > whether it is safe to start an event loop now or not. > Classes like `Dialog` check via > `Toolkit.getToolkit().canStartNestedEventLoop()`

Re: RFR: 8178368: Right and Center alignment of text field works incorrectly [v4]

2023-02-16 Thread Andy Goryachev
On Fri, 10 Feb 2023 05:39:33 GMT, Karthik P K wrote: >> When Text width was more than TextField width, the logic to update >> `textTranslateX` in `updateCaretOff` method was causing the issue of >> unexpected behavior for Right and Center alignment. >> >> Made changes to update

Re: RFR: 8178368: Right and Center alignment of text field works incorrectly [v4]

2023-02-16 Thread Kevin Rushforth
On Fri, 10 Feb 2023 05:39:33 GMT, Karthik P K wrote: >> When Text width was more than TextField width, the logic to update >> `textTranslateX` in `updateCaretOff` method was causing the issue of >> unexpected behavior for Right and Center alignment. >> >> Made changes to update

RFR: 8302684 : Cherry-pick WebKit 615.1 stabilization fixes (2)

2023-02-16 Thread Hima Bindu Meda
Stabilization fixes from Webkitgtk-2.38.5. Verified drt and unit tests. No issues observed. - Commit messages: - white space correction - Cherry-pick stabilisation fixes till 2.38.5 Changes: https://git.openjdk.org/jfx/pull/1038/files Webrev:

Re: RFR: 8284662: [Win][Accessibility][ListCell] Screen reader fails to read ListView/ComboBox item count if > 100

2023-02-16 Thread Kevin Rushforth
On Thu, 16 Feb 2023 08:56:58 GMT, Ambarish Rapte wrote: > Accessibility client applications like Windows Narrator and JAWS read > positions of the items in a ListView/ComboBox as "index of total-item-count". > For example, in an ComboBox with 10 items, first item "Item1" would be read > as

Re: RFR: 8302472 WebColorFieldSkin should use precompiled Pattern

2023-02-16 Thread Michael Strauß
On Tue, 14 Feb 2023 16:12:29 GMT, John Hendrikx wrote: > Split off from https://github.com/openjdk/jfx/pull/837 > > This uses a precompiled regex pattern and cleans up the code in > WebColorFieldSkin a bit.

RFR: 8283551: ControlAcceleratorSupport menu items listener causes memory leak

2023-02-16 Thread Dean Wookey
Each time a menu would change scenes, a new set of ListChangeListeners would be added to the items in the menu. The bigger problem however is that these list change listeners have a strong reference to the scene which is potentially a much bigger leak. The first commit was more

Re: RFR: JDK-8090647: Mnemonics : on windows we should cancel the underscore latch when an app loses focus. [v2]

2023-02-16 Thread Ajit Ghaisas
On Wed, 15 Feb 2023 22:24:41 GMT, John Hendrikx wrote: >> This fix hides mnemonics when the Scene's Window loses focus. >> >> Before integration, we need to make sure this is correct behavior for Mac >> and Linux as well. It is correct for Windows. >> >> How to test: >> >> - Create a control

Integrated: 8281327: JavaFX does not support fonts installed per-user on Windows 10/11

2023-02-16 Thread Jose Pereda
On Tue, 31 Jan 2023 10:30:22 GMT, Jose Pereda wrote: > This PR simply applies the patch from > [JDK-8218914](https://bugs.openjdk.org/browse/JDK-8218914) that solved the > same issue for the JDK. > > I've tested it on Windows 11 (Version 22H2 Build 22621.1105). > > I have the Roboto font

Re: RFR: 8281327: JavaFX does not support fonts installed per-user on Windows 10/11

2023-02-16 Thread Ambarish Rapte
On Tue, 31 Jan 2023 10:30:22 GMT, Jose Pereda wrote: > This PR simply applies the patch from > [JDK-8218914](https://bugs.openjdk.org/browse/JDK-8218914) that solved the > same issue for the JDK. > > I've tested it on Windows 11 (Version 22H2 Build 22621.1105). > > I have the Roboto font

RFR: 8284662: [Win][Accessibility][ListCell] Missing voice output of position of ListCell in ListView/ComboBox with more than hundred items

2023-02-16 Thread Ambarish Rapte
Accessibility client applications like Windows Narrator and JAWS read positions of the items in a ListView/ComboBox as "index of total-item-count". For example, in an ComboBox with 10 items, first item "Item1" would be read as "Item one, one of ten". Similarly it appends the of for all items.

Integrated: 8300893: Wrong state after deselecting two or more cells of a TableView selection

2023-02-16 Thread Jose Pereda
On Mon, 23 Jan 2023 20:40:23 GMT, Jose Pereda wrote: > Given a TableView with multiple and cell selection modes enabled, three > different but closely related issues are tackled with this PR: > > - Selection history, that is used to backtrack deselection of cells, removes > deselected cells,