Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly [v5]

2023-02-23 Thread John Hendrikx
On Fri, 24 Feb 2023 06:26:21 GMT, Karthik P K wrote: > > I think this class may benefit from a few tests that test with a very wide > > caret, to see if positioning is what you'd expect in those cases as well. I > > get the impression a lot of the code assumes a narrow caret (1 or 2 pixels) >

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly [v5]

2023-02-23 Thread John Hendrikx
On Thu, 23 Feb 2023 16:29:29 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TextFieldSkin.java >> line 805: >> >>> 803: // appear at the left of the centered prompt. >>> 804: newX = midPoint - >>>

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly

2023-02-23 Thread Karthik P K
On Thu, 23 Feb 2023 17:40:05 GMT, Andy Goryachev wrote: > It might behave differently when the caret is at the rightmost position next > to the control edge, in which case the behavior is correct. Perhaps there > ought to be some conditional logic implemented, but the way it behaves now >

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly [v5]

2023-02-23 Thread Karthik P K
On Thu, 23 Feb 2023 09:20:26 GMT, John Hendrikx wrote: > I think this class may benefit from a few tests that test with a very wide > caret, to see if positioning is what you'd expect in those cases as well. I > get the impression a lot of the code assumes a narrow caret (1 or 2 pixels) > and

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly [v5]

2023-02-23 Thread Karthik P K
On Thu, 23 Feb 2023 09:11:56 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix text and prompt alignment issue > >

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly [v5]

2023-02-23 Thread Karthik P K
On Thu, 23 Feb 2023 16:34:11 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TextFieldSkin.java >> line 818: >> >>> 816: } else if (newX < 0 && oldX > 1) { >>> 817: textTranslateX.set(caretWidth / 2); >>> 818:

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly [v5]

2023-02-23 Thread Karthik P K
On Thu, 23 Feb 2023 16:29:29 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TextFieldSkin.java >> line 805: >> >>> 803: // appear at the left of the centered prompt. >>> 804: newX = midPoint - >>>

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly [v6]

2023-02-23 Thread Karthik P K
> 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 `textTranslateX` in `updateCaretOff` method only when > text width is

Re: RFR: 8090123: Items are no longer visible when collection is changed [v6]

2023-02-23 Thread Karthik P K
On Thu, 23 Feb 2023 17:48:39 GMT, Andy Goryachev wrote: > Noticed a minor behavior issue, on Mac with multiple monitors. The secondary > monitor (scale=1) is positioned above the primary retina screen (scale=2). > When showing a popup in the case of 100 elements, the down arrow at the >

Re: RFR: 8299595: Remove terminally deprecated JavaFX GTK 2 library [v7]

2023-02-23 Thread Thiago Milczarek Sayao
On Thu, 23 Feb 2023 22:50:17 GMT, Kevin Rushforth wrote: >> Thiago Milczarek Sayao has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Improve exception > > modules/javafx.graphics/src/main/native-glass/gtk/GlassApplication.cpp line > 118:

Re: RFR: 8299595: Remove terminally deprecated JavaFX GTK 2 library [v8]

2023-02-23 Thread Thiago Milczarek Sayao
> Simple PR to remove gtk2 library compilation and loading. Thiago Milczarek Sayao has updated the pull request incrementally with one additional commit since the last revision: Review changes - Changes: - all: https://git.openjdk.org/jfx/pull/999/files - new:

Re: RFR: 8303038: Glass gtk3 sends scroll events with delta(x, y) = 0 [v3]

2023-02-23 Thread Thiago Milczarek Sayao
On Thu, 23 Feb 2023 11:28:56 GMT, Thiago Milczarek Sayao wrote: >> Simple fix to get the scroll deltas from GDK_SCROLL_SMOOTH. If we ignore >> this scroll event type, deltas are sent to java with the value equal to zero. >> >> Here's whats happening: >> >> We include all event masks, so when

Re: RFR: 8303038: Glass gtk3 sends scroll events with delta(x, y) = 0 [v4]

2023-02-23 Thread Thiago Milczarek Sayao
> Simple fix to get the scroll deltas from GDK_SCROLL_SMOOTH. If we ignore this > scroll event type, deltas are sent to java with the value equal to zero. > > Here's whats happening: > > We include all event masks, so when using gtk3 (>= 3.4.0) it includes > `GDK_SMOOTH_SCROLL_MASK` meaning we

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

2023-02-23 Thread Kevin Rushforth
On Sun, 19 Feb 2023 18:29:16 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: 8299595: Remove terminally deprecated JavaFX GTK 2 library [v7]

2023-02-23 Thread Kevin Rushforth
On Tue, 21 Feb 2023 00:29:13 GMT, Thiago Milczarek Sayao wrote: >> Simple PR to remove gtk2 library compilation and loading. > > Thiago Milczarek Sayao has updated the pull request incrementally with one > additional commit since the last revision: > > Improve exception The updated fix and

Re: RFR: JDK-8223373: Remove IntelliJ IDEA specific files from the source code repository [v3]

2023-02-23 Thread Marius Hanl
On Thu, 23 Feb 2023 00:41:28 GMT, Thiago Milczarek Sayao wrote: >> This PR does: >> >> - Remove specific Idea files and let it be imported from gradle; >> - Adds checkstyle (to use with checkstyle plugin - it will let you know >> style mistakes); >> - Configures auto-format to sun style (with

RFR: 8290866: Apple Color Emoji turns gray after JavaFX version 18

2023-02-23 Thread Phil Race
This fix properly supports colour rendering of Emoji on macOS On other platforms the Emoji will be rendered as ordinary greyscale glyphs - if there is font support for the requested code point. A simple manual test is provided which uses a Text node, Label control and editable TextField

[jfx20] RFR: 8303019: cssref.html incorrect internal link in Path

2023-02-23 Thread Andy Goryachev
documentation change **targeting jfx20 branch** - fixed all incorrect references in "Also has all properties of ..." - added a link to Shape where it was missing - fixed chart -> Chart - Commit messages: - 8303019: cssref.html incorrect internal link in Path Changes:

Re: RFR: 8090123: Items are no longer visible when collection is changed [v6]

2023-02-23 Thread Andy Goryachev
On Thu, 23 Feb 2023 05:21:37 GMT, Karthik P K wrote: >> When a large number of items were scrolled in the `ChoiceBox`, the scrolled >> offset was carried forward when the list is replaced with small number of >> items. Hence the scroll up arrow was displayed with empty popup. >> >> Changed

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly [v5]

2023-02-23 Thread Andy Goryachev
On Thu, 23 Feb 2023 08:52:19 GMT, John Hendrikx wrote: >> Karthik P K has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix text and prompt alignment issue > >

Re: RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly

2023-02-23 Thread Andy Goryachev
On Thu, 22 Dec 2022 10:33:15 GMT, Ajit Ghaisas 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 alignment of text fields and alignment of prompt text works incorrectly [v5]

2023-02-23 Thread Andy Goryachev
On Thu, 23 Feb 2023 07:36:43 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

Integrated: 8301022: Video distortion is observed while playing youtube video

2023-02-23 Thread Jay Bhaskar
On Wed, 22 Feb 2023 07:46:58 GMT, Jay Bhaskar wrote: > Issue: current update is breaking the rendering of media controls on youtube > video playback >For the Webkit Gtk platform, the layout class name is returned as > AdwaitaLayoutTraits >which is incompatible with the

Re: RFR: 8303038: Glass gtk3 sends scroll events with delta(x, y) = 0 [v3]

2023-02-23 Thread Glavo
On Thu, 23 Feb 2023 11:28:56 GMT, Thiago Milczarek Sayao wrote: >> Simple fix to get the scroll deltas from GDK_SCROLL_SMOOTH. If we ignore >> this scroll event type, deltas are sent to java with the value equal to zero. >> >> Here's whats happening: >> >> We include all event masks, so when

Re: RFR: 8303038: Glass gtk3 sends scroll events with delta(x, y) = 0 [v3]

2023-02-23 Thread Thiago Milczarek Sayao
> Simple fix to get the scroll deltas from GDK_SCROLL_SMOOTH. If we ignore this > scroll event type, deltas are sent to java with the value equal to zero. Thiago Milczarek Sayao has updated the pull request incrementally with one additional commit since the last revision: Fix direction

Re: RFR: 8303038: Glass gtk3 sends scroll events with delta(x, y) = 0 [v2]

2023-02-23 Thread Thiago Milczarek Sayao
On Thu, 23 Feb 2023 02:35:20 GMT, Thiago Milczarek Sayao wrote: >> Simple fix to get the scroll deltas from GDK_SCROLL_SMOOTH. If we ignore >> this scroll event type, deltas are sent to java with the value equal to zero. > > Thiago Milczarek Sayao has updated the pull request incrementally

Re: RFR: 8283551: ControlAcceleratorSupport menu items listener causes memory leak

2023-02-23 Thread Dean Wookey
On Thu, 23 Feb 2023 09:26:29 GMT, Marius Hanl wrote: >> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/ControlAcceleratorSupport.java >> line 285: >> >>> 283: } >>> 284: >>> 285: private static void removeAcceleratorsFromScene(List>> MenuItem> items, Scene scene) {

Re: RFR: 8283551: ControlAcceleratorSupport menu items listener causes memory leak

2023-02-23 Thread Marius Hanl
On Wed, 22 Feb 2023 19:24:16 GMT, Andy Goryachev wrote: >> 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 >>

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

2023-02-23 Thread John Hendrikx
On Thu, 23 Feb 2023 07:36:43 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 [v5]

2023-02-23 Thread John Hendrikx
On Thu, 23 Feb 2023 07:36:43 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

ChangeListener documentation clarification

2023-02-23 Thread John Hendrikx
Hi list, I've been busy trying to ensure that ChangeListeners received sensible old/new values at all times.  This is important as users may be relying on these values to be correct when doing calculations or creating nested bindings (where an old listener is removed based on the old value