Re: RFR: 8336882: Convert CssStyleHelperTest to use JUnit 5

2024-07-22 Thread Marius Hanl
On Mon, 22 Jul 2024 09:45:38 GMT, John Hendrikx wrote: > Conversion of the CssStyleHelperTest to JUnit 5 for PR's #1503 and #1505 Marked as reviewed by mhanl (Committer). - PR Review: https://git.openjdk.org/jfx/pull/1515#pullrequestreview-2191270417

[jfx23] Integrated: 8336272: SizeToSceneTest: fullScreen tests fail on Ubuntu 22.04

2024-07-12 Thread Marius Hanl
On Fri, 12 Jul 2024 15:14:47 GMT, Marius Hanl wrote: > This pull request contains a backport of commit e3c15957 from the openjdk/jfx > repository. This pull request has now been integrated. Changeset: e89443de Author:Marius Hanl URL: https://git.openjdk.org/jfx/

[jfx23] RFR: 8336272: SizeToSceneTest: fullScreen tests fail on Ubuntu 22.04

2024-07-12 Thread Marius Hanl
This pull request contains a backport of commit e3c15957 from the openjdk/jfx repository. - Commit messages: - Backport e3c15957488256ec53c5fb9978e336c59b69d65e Changes: https://git.openjdk.org/jfx/pull/1504/files Webrev: https://webrevs.openjdk.org/?repo=jfx=1504=00 Issue:

Integrated: 8336272: SizeToSceneTest: fullScreen tests fail on Ubuntu 22.04

2024-07-12 Thread Marius Hanl
On Thu, 11 Jul 2024 22:33:38 GMT, Marius Hanl wrote: > Tests that the `Stage Size` is between the `Visual Screen bounds - 50 > (delta)` and `Screen bounds + 50 (delta)`. > -> `stageSize >= (visualBounds - 50)` & `stageSize <= (bounds + 50)`. > > Tested only on Wi

Integrated: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed

2024-07-12 Thread Marius Hanl
On Fri, 8 Mar 2024 15:58:09 GMT, Marius Hanl wrote: > This PR fixes a long standing issue where the `Tooltip` will always wait one > second until it appears the very first time, even if the > `-fx-show-delay` was set to another value. > > The culprit is, that the `

RFR: 8336272: SizeToSceneTest: fullScreen tests fail on Ubuntu 22.04

2024-07-11 Thread Marius Hanl
Tests that the `Stage Size` is between the `Visual Screen bounds - 50 (delta)` and `Screen bounds + 50 (delta)`. -> `stageSize >= (visualBounds - 50)` & `stageSize <= (bounds + 50)`. Tested only on Windows 10 for now. - Commit messages: - JDK-8336272: SizeToSceneTest: fullScreen

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v3]

2024-07-11 Thread Marius Hanl
ity modification, > the rendering goes another (probably faster) route with rendering the clip. > That's why setting the `opacity` to `0.99` fixes the issue - another route > will be used for the rendering. > This happens at the low level (`NGNode`) side of JavaFX. > ... > I cou

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v11]

2024-07-11 Thread Marius Hanl
On Thu, 11 Jul 2024 15:29:01 GMT, Kevin Rushforth wrote: > If you can do it in the next 30 minutes, it will make JavaFX 23 before the > RDP1 fork. If it is after the fork, it might be a candidate to backport to > jfx23. Damn, missed the time. I will keep it open until tomorrow, in case

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v11]

2024-07-11 Thread Marius Hanl
On Thu, 11 Jul 2024 11:19:36 GMT, Kevin Rushforth wrote: > With your latest change, the test now passes on my Windows 11 system. Maybe > the resetting of `tooltipStartTime` and `tooltipShownTime` fixed it? I'll > look more closely in a bit. I would not expect that, but maybe it has something

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v12]

2024-07-11 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful and headless tests for the behaviour since ther

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v10]

2024-07-11 Thread Marius Hanl
On Wed, 10 Jul 2024 23:12:32 GMT, Kevin Rushforth wrote: > Have you run it on Windows? Yes, on Windows 10 and Windows 11. Executed the test multiple time now again, always around 110 - 140 ms for me. Weird. - PR Comment:

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v11]

2024-07-11 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful and headless tests for the behaviour since ther

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v10]

2024-07-10 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful and headless tests for the behaviour since ther

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v9]

2024-07-10 Thread Marius Hanl
On Thu, 4 Jul 2024 09:32:39 GMT, Marius Hanl wrote: >> This PR fixes a long standing issue where the `Tooltip` will always wait one >> second until it appears the very first time, even if the >> `-fx-show-delay` was set to another value. >> >> The culprit

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v9]

2024-07-10 Thread Marius Hanl
On Mon, 8 Jul 2024 17:49:10 GMT, Andy Goryachev wrote: >> Thought about this well, didn't test yet > > see for example > https://github.com/openjdk/jfx/blob/72701e6cb4095b8f5042f54ae6bb2c0cec446bcf/modules/javafx.graphics/src/test/java/test/javafx/scene/Node_transition_Test.java#L142 Ah, looks

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v9]

2024-07-10 Thread Marius Hanl
On Tue, 9 Jul 2024 11:38:30 GMT, Kevin Rushforth wrote: >> Another possibility is the code that measures the time it takes to show the >> tooltip. >> >> The current code uses Util.waitForLatch(), L244 which was written for a >> different use case and actually introduces a small measurement

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v9]

2024-07-06 Thread Marius Hanl
On Fri, 5 Jul 2024 17:13:47 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> add many more unit tests for Tooltip > > tests/system/src/test/java/test/robot/javafx/

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v9]

2024-07-06 Thread Marius Hanl
On Fri, 5 Jul 2024 17:11:54 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> add many more unit tests for Tooltip > > modules/javafx.controls/src/test/

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v9]

2024-07-04 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful tests for the behaviour since there were none be

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v8]

2024-07-04 Thread Marius Hanl
On Wed, 26 Jun 2024 10:43:30 GMT, Marius Hanl wrote: >> This PR fixes a long standing issue where the `Tooltip` will always wait one >> second until it appears the very first time, even if the >> `-fx-show-delay` was set to another value. >> >> The culprit

Integrated: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window

2024-07-03 Thread Marius Hanl
On Mon, 26 Feb 2024 20:51:56 GMT, Marius Hanl wrote: > This PR fixes the problem that maximizing/fullscreen a `Stage` or `Dialog` is > broken when `sizeToScene()` was called before or after. > > The approach here is to ignore the `sizeToScene()` request when the `Stage` > is m

Re: RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException [v3]

2024-07-01 Thread Marius Hanl
On Mon, 1 Jul 2024 09:16:52 GMT, Prasanta Sadhukhan wrote: >> Adding, then removing, and then adding a JFXPanel to the same component in >> the Swing scene graph leads to a NullPointerException in GlassScene because >> the sceneState is null. >> Removing JFXPanel calls JFXPanel.removeNotify

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs

2024-06-27 Thread Marius Hanl
On Tue, 4 Apr 2023 15:22:48 GMT, John Hendrikx wrote: > This provides and uses a new implementation of `ExpressionHelper`, called > `ListenerManager` with improved semantics. > > # Behavior > > |Listener...|ExpressionHelper|ListenerManager| > |---|---|---| > |Invocation Order|In order they

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window [v9]

2024-06-27 Thread Marius Hanl
the Window Manager of the OS will be confused and you will get > weird flickering or wrong Window buttons (e.g. on Windows, the 'Maximize' > button still shows the 'Restore' Icon, while we already resized the `Stage` > to not be maximized). Marius Hanl has updated the pull request incrementally

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window [v8]

2024-06-27 Thread Marius Hanl
On Thu, 27 Jun 2024 10:38:42 GMT, Lukasz Kostyra wrote: > Change looks good, but I'm still seeing failures on my macOS system (Sonoma > 14.5, MacBook Pro M1 Max): I'm confused, the screen height is reported as 1085? Looks like the width, but I still would not expect a width like that. Thats

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v8]

2024-06-26 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful tests for the behaviour since there were none be

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v6]

2024-06-26 Thread Marius Hanl
On Tue, 25 Jun 2024 23:13:01 GMT, Andy Goryachev wrote: > question is - do we really need to expose this method (for custom popup > windows, for example), or not? I can not really see why this is needed, other than maybe to not copy any style from the owner. It is hard to guess a usecase, so

Re: RFR: 8314754: Minor ticks are not getting updated both the axes in LineChart [v3]

2024-06-26 Thread Marius Hanl
On Wed, 26 Jun 2024 06:33:43 GMT, Markus Mack wrote: >> This PR ensures the `tickMarksUpdated()` method (overriden with minor tick >> mark layout code in subclasses) is called during `Chart` `Axis` layout when >> needed. >> Previously, it was only called when tick mark length or range was

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v6]

2024-06-25 Thread Marius Hanl
On Tue, 25 Jun 2024 14:51:03 GMT, Andy Goryachev wrote: >> Either here or in the new method I think. What is your opinion? > > I wasn't sure; I suppose you have it right. > > I would have added the new JBS ticket id since RT- prefix is no more, but it > is ok as it is. Changed to the JDK

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v6]

2024-06-25 Thread Marius Hanl
On Sun, 26 May 2024 13:02:23 GMT, Marius Hanl wrote: >> This PR fixes a long standing issue where the `Tooltip` will always wait one >> second until it appears the very first time, even if the >> `-fx-show-delay` was set to another value. >> >> The culprit

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v7]

2024-06-25 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful tests for the behaviour since there were none be

Re: RFR: 8314754: Minor ticks are not getting updated both the axes in LineChart [v2]

2024-06-25 Thread Marius Hanl
On Tue, 25 Jun 2024 21:46:25 GMT, Markus Mack wrote: >> This PR ensures the `tickMarksUpdated()` method (overriden with minor tick >> mark layout code in subclasses) is called during `Chart` `Axis` layout when >> needed. >> Previously, it was only called when tick mark length or range was

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v6]

2024-06-25 Thread Marius Hanl
On Tue, 28 May 2024 16:53:39 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add a test for changing the stylesheet and always process CSS for that >> matter &

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window [v8]

2024-06-25 Thread Marius Hanl
the Window Manager of the OS will be confused and you will get > weird flickering or wrong Window buttons (e.g. on Windows, the 'Maximize' > button still shows the 'Restore' Icon, while we already resized the `Stage` > to not be maximized). Marius Hanl has updated the pull request incrementally

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v6]

2024-06-04 Thread Marius Hanl
On Tue, 28 May 2024 16:51:11 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add a test for changing the stylesheet and always process CSS for that >> matter &

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v6]

2024-06-04 Thread Marius Hanl
On Tue, 28 May 2024 16:48:39 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add a test for changing the stylesheet and always process CSS for that >> matter >

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v2]

2024-06-04 Thread Marius Hanl
On Fri, 31 May 2024 17:47:22 GMT, Andy Goryachev wrote: > you are right: I see the focus rectangle jitter at 175% scale on win 11 (w/o > the fix), so it must be a different issue. At this scale, it merely shows a > thinner line, perhaps that's why I did not notice it earlier. Yeah exactly, it

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling

2024-05-31 Thread Marius Hanl
On Tue, 28 May 2024 14:32:01 GMT, Andy Goryachev wrote: > I do not see the issue without the fix though (at the same resolution). I can, the `TableView` is the root of the `Scene` in this case. Happens inside a `StackPane` as well.

Re: RFR: 8322964: Optimize performance of CSS selector matching [v13]

2024-05-29 Thread Marius Hanl
On Tue, 28 May 2024 21:44:36 GMT, John Hendrikx wrote: >> Improves performance of selector matching in the CSS subsystem. This is done >> by using custom set implementation which are highly optimized for the most >> common cases where the number of selectors is small (most commonly 1 or 2).

Re: RFR: 8322964: Optimize performance of CSS selector matching [v10]

2024-05-28 Thread Marius Hanl
On Tue, 28 May 2024 04:35:34 GMT, John Hendrikx wrote: >> Improves performance of selector matching in the CSS subsystem. This is done >> by using custom set implementation which are highly optimized for the most >> common cases where the number of selectors is small (most commonly 1 or 2).

Re: RFR: 8322964: Optimize performance of CSS selector matching [v12]

2024-05-28 Thread Marius Hanl
On Tue, 28 May 2024 04:48:32 GMT, John Hendrikx wrote: >> Improves performance of selector matching in the CSS subsystem. This is done >> by using custom set implementation which are highly optimized for the most >> common cases where the number of selectors is small (most commonly 1 or 2).

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window [v7]

2024-05-27 Thread Marius Hanl
the Window Manager of the OS will be confused and you will get > weird flickering or wrong Window buttons (e.g. on Windows, the 'Maximize' > button still shows the 'Restore' Icon, while we already resized the `Stage` > to not be maximized). Marius Hanl has updated the pull request incrementally

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window [v6]

2024-05-27 Thread Marius Hanl
the Window Manager of the OS will be confused and you will get > weird flickering or wrong Window buttons (e.g. on Windows, the 'Maximize' > button still shows the 'Restore' Icon, while we already resized the `Stage` > to not be maximized). Marius Hanl has updated the pull request incrementally

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window [v5]

2024-05-26 Thread Marius Hanl
the Window Manager of the OS will be confused and you will get > weird flickering or wrong Window buttons (e.g. on Windows, the 'Maximize' > button still shows the 'Restore' Icon, while we already resized the `Stage` > to not be maximized). Marius Hanl has updated the pull request incrementally

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v6]

2024-05-26 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful tests for the behaviour since there were none be

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling

2024-05-26 Thread Marius Hanl
On Thu, 23 May 2024 21:51:55 GMT, Marius Hanl wrote: > Alternative PR to https://github.com/openjdk/jfx/pull/1330 which does not > modify the layout of `VirtualFlow`. > > This PR fixes the glitching by removing the code in `NGNode.renderRectClip`, > which made many calcu

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v2]

2024-05-26 Thread Marius Hanl
ity modification, > the rendering goes another (probably faster) route with rendering the clip. > That's why setting the `opacity` to `0.99` fixes the issue - another route > will be used for the rendering. > This happens at the low level (`NGNode`) side of JavaFX. > ... > I could

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v5]

2024-05-26 Thread Marius Hanl
On Thu, 23 May 2024 22:30:29 GMT, Andy Goryachev wrote: > with the latest monkey tester I see that updating the stylesheet does not > update the showingDelay property immediately. When the tooltip gets shown, I > see the following output from the change listener added to this property: > >

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling

2024-05-26 Thread Marius Hanl
On Fri, 24 May 2024 16:59:20 GMT, Andy Goryachev wrote: >> Alternative PR to https://github.com/openjdk/jfx/pull/1330 which does not >> modify the layout of `VirtualFlow`. >> >> This PR fixes the glitching by removing the code in `NGNode.renderRectClip`, >> which made many calculations

Re: RFR: 8322964: Optimize performance of CSS selector matching [v9]

2024-05-23 Thread Marius Hanl
On Mon, 11 Mar 2024 16:54:25 GMT, John Hendrikx wrote: >> Improves performance of selector matching in the CSS subsystem. This is done >> by using custom set implementation which are highly optimized for the most >> common cases where the number of selectors is small (most commonly 1 or 2).

Re: RFR: 8322964: Optimize performance of CSS selector matching [v9]

2024-05-23 Thread Marius Hanl
On Mon, 11 Mar 2024 16:54:25 GMT, John Hendrikx wrote: >> Improves performance of selector matching in the CSS subsystem. This is done >> by using custom set implementation which are highly optimized for the most >> common cases where the number of selectors is small (most commonly 1 or 2).

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling

2024-05-23 Thread Marius Hanl
On Thu, 23 May 2024 22:02:41 GMT, Kevin Rushforth wrote: > I'm reasonably sure there was a good reason for the code in NGNode doing what > it did. This will need very careful review and testing before we would accept > it. 100% agree. Note that the code there is a shortcut for performance

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v4]

2024-05-23 Thread Marius Hanl
On Thu, 23 May 2024 14:54:36 GMT, Marius Hanl wrote: >> This PR fixes a long standing issue where the `Tooltip` will always wait one >> second until it appears the very first time, even if the >> `-fx-show-delay` was set to another value. >> >> The culprit

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v5]

2024-05-23 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful tests for the behaviour since there were none be

RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling

2024-05-23 Thread Marius Hanl
Alternative PR to https://github.com/openjdk/jfx/pull/1330 which does not modify the layout of `VirtualFlow`. This PR fixes the glitching by removing the code in `NGNode.renderRectClip`, which made many calculations leading to floating point errors. Interestingly I found out, that

Re: RFR: 8285893: Hiding dialog and showing new one causes dialog to be frozen [v9]

2024-05-23 Thread Marius Hanl
hough the nested event loop code is the same as for > Mac) (I would appreciate if someone can do this as I have no access to an iOS > device) > - [x] Adjust copyright > - [x] Write Systemtest > - [x] Document the new behaviour - in general, there should be more >

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v4]

2024-05-23 Thread Marius Hanl
ltipBehaviour`. So the very first `Tooltip` gets processed correctly, > but after no `Tooltip` will be processed by CSS before showing, resulting in > the set `-fx-show-delay` to not be applied immediately. > > Added a bunch of headful tests for the behaviour since there were none be

Re: RFR: 8285893: Hiding dialog and showing new one causes dialog to be frozen

2024-05-23 Thread Marius Hanl
On Tue, 14 May 2024 18:42:47 GMT, Martin Fox wrote: > On Linux leaveNestedEventLoop makes changes in glass that cannot be erased or > undone (it calls gtk_main_quit which updates internal GTK state that we don’t > have access to). In the end GTK will exit the loops in the correct order but >

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window [v4]

2024-05-23 Thread Marius Hanl
the Window Manager of the OS will be confused and you will get > weird flickering or wrong Window buttons (e.g. on Windows, the 'Maximize' > button still shows the 'Restore' Icon, while we already resized the `Stage` > to not be maximized). Marius Hanl has updated the pull request with a new

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window [v3]

2024-05-23 Thread Marius Hanl
On Tue, 30 Apr 2024 23:20:59 GMT, Kevin Rushforth wrote: > * I wanted to verify different orders of operation, so I wrote a (manual) > test program I'm retesting and writing tests right now and reproduced one usecase out of my head that indeed 'fails' now. Take the following code:

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v2]

2024-05-23 Thread Marius Hanl
tLayoutX` > - Content > - vsb > - hsb > - corner > > --- > - VirtualFlow > - viewRect **(->NEW IN THIS PR<-)** -> `setClip` -> clipRect > (clippedContainer size) > - clippedContainer/clipView -> `setLayoutX` (when scrolling) > - sh

Re: RFR: 8285893: Hiding dialog and showing new one causes dialog to be frozen [v8]

2024-05-23 Thread Marius Hanl
hough the nested event loop code is the same as for > Mac) (I would appreciate if someone can do this as I have no access to an iOS > device) > - [x] Adjust copyright > - [x] Write Systemtest > - [x] Document the new behaviour - in general, there should be more > information what

Re: RFR: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window

2024-05-23 Thread Marius Hanl
On Fri, 8 Mar 2024 16:39:56 GMT, Marius Hanl wrote: >> This seems like a reasonable fix and spec change. Have you tested the case >> of calling sizeToScene before setting full-screen or maximzed? Since the >> pending flag will still be set in that case, I want to m

Re: RFR: 8285893: Hiding dialog and showing new one causes dialog to be frozen

2024-05-16 Thread Marius Hanl
On Mon, 6 May 2024 21:11:35 GMT, Martin Fox wrote: > I'll look into the Linux failure. The core EventLoop code passes an object > into the application's leaveNestedEventLoop and expects to see that object > returned from the applications's matching enterNestedEventLoop call. On Mac > and

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v3]

2024-04-12 Thread Marius Hanl
On Thu, 11 Apr 2024 20:23:52 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Allow Tooltip to process the owner styles first so that also global >> styleshe

Integrated: 8186188: TableColumHeader: initial auto-size broken if has graphic

2024-04-12 Thread Marius Hanl
On Sat, 16 Mar 2024 15:47:18 GMT, Marius Hanl wrote: > This PR fixes the issue that the initial column autosizing is wrong under > some circumstances. > The following things will break the initial autosizing: > - Bold Column text (that is where I initially found this problem) >

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling

2024-04-10 Thread Marius Hanl
On Wed, 10 Jan 2024 19:21:16 GMT, Marius Hanl wrote: > This PR fixes the border glitch/gap as explained in both linked tickets. > > I noted that the `ScrollPane` control does not suffer from this problem, > although the code is mostly the same as in `VirtualFlow`. The `ScrollPa

Re: RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v3]

2024-04-10 Thread Marius Hanl
On Sat, 9 Mar 2024 10:27:21 GMT, Marius Hanl wrote: >> This PR fixes a long standing issue where the `Tooltip` will always wait one >> second until it appears the very first time, even if the >> `-fx-show-delay` was set to another value. >> >> The culprit

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v4]

2024-04-07 Thread Marius Hanl
On Tue, 2 Apr 2024 07:37:15 GMT, Robert Lichtenberger wrote: >> @effad Since you benchmarked this method in #1358, could you do that again >> with this changes? > >> @effad Since you benchmarked this method in #1358, could you do that again >> with this changes? > > Sorry for the late reply,

Re: RFR: 8324939: Editable TableView loses focus after commit [v2]

2024-04-04 Thread Marius Hanl
On Wed, 3 Apr 2024 19:54:20 GMT, Jose Pereda wrote: >> This PR fixes the issue that after committing an edit on a >> ListView/TreeView/TableView/TreeTableView control, the control might lose >> the focus unexpectedly. >> >> For that, it refactors the >>

Re: RFR: 8324939: Editable TableView loses focus after commit [v2]

2024-04-04 Thread Marius Hanl
On Wed, 3 Apr 2024 19:51:08 GMT, Jose Pereda wrote: >> modules/javafx.controls/src/test/java/test/javafx/scene/control/TreeViewTest.java >> line 2362: >> >>> 2360: assertTrue(treeView.isFocused()); >>> 2361: >>> 2362: VirtualFlowTestUtils.BLOCK_STAGE_LOADER_DISPOSE = true; >>

Re: RFR: 8323511 Scrollbar Click jumps inconsistent amount of pixels

2024-03-31 Thread Marius Hanl
On Thu, 11 Jan 2024 12:17:11 GMT, Marius Hanl wrote: >> As seen in the unit test of the PR, when we click on the area above/below >> the scrollbar the position jumps - but the jump is now not always consistent. >> In the current version on the last cell - the UI alway

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

2024-03-28 Thread Marius Hanl
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: RFR: 8324939: Editable TableView loses focus after commit

2024-03-28 Thread Marius Hanl
On Wed, 20 Mar 2024 10:55:56 GMT, Jose Pereda wrote: > This PR fixes the issue that after committing an edit on a > ListView/TreeView/TableView/TreeTableView control, the control might lose the > focus unexpectedly. > > For that, it refactors the >

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

2024-03-27 Thread Marius Hanl
On Wed, 27 Mar 2024 13:41:21 GMT, Nir Lisker wrote: > That's still 2 iterations. Yes, but one advantage here: We currently do `final List removed = new ArrayList<>(c.getRemovedSize());`, where we allocate a list with a size, that is probably too big since we filter the removed items. So with

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

2024-03-27 Thread Marius Hanl
On Wed, 27 Mar 2024 13:51:46 GMT, Nir Lisker wrote: >> drmarmac has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove outdated comment > > modules/javafx.controls/src/main/java/javafx/scene/control/MultipleSelectionModelBase.java >

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v7]

2024-03-27 Thread Marius Hanl
d after we triggered the > autosize, which is what we would expect here since we measure text. > > I also copied the `TableColumnHeaderTest` and rewrote the tests for > `TreeTableView` as well, so we can catch any errors here as well since they > both use different code (although it

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v6]

2024-03-27 Thread Marius Hanl
d after we triggered the > autosize, which is what we would expect here since we measure text. > > I also copied the `TableColumnHeaderTest` and rewrote the tests for > `TreeTableView` as well, so we can catch any errors here as well since they > both use different code (although it

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v5]

2024-03-27 Thread Marius Hanl
d after we triggered the > autosize, which is what we would expect here since we measure text. > > I also copied the `TableColumnHeaderTest` and rewrote the tests for > `TreeTableView` as well, so we can catch any errors here as well since they > both use different code (although it

Integrated: JDK-8328750: [TestBug] Improve Stub Font Support

2024-03-27 Thread Marius Hanl
On Thu, 21 Mar 2024 22:06:42 GMT, Marius Hanl wrote: > In https://github.com/openjdk/jfx/pull/1405, I identified some shortcomings > of the stub font implementation. As I don't want to clutter the PR with that, > I decided to cherrypick the improvements I did to a new tick

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v4]

2024-03-27 Thread Marius Hanl
On Wed, 20 Mar 2024 19:53:40 GMT, Marius Hanl wrote: >> This PR fixes the issue that the initial column autosizing is wrong under >> some circumstances. >> The following things will break the initial autosizing: >> - Bold Column text (that is where I initially found th

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support [v2]

2024-03-27 Thread Marius Hanl
On Tue, 26 Mar 2024 20:53:17 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> improve (stub) font tests, fallback and documentation > > modules/javafx.graphics/src

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support [v3]

2024-03-27 Thread Marius Hanl
will be calculated with a little bit more width (1px). Checkout > the test as well for that > > Note: This only changes test setup, no 'production' code. Marius Hanl has updated the pull request incrementally with one additional commit since the last revision: improve javadoc - C

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

2024-03-27 Thread Marius Hanl
On Wed, 27 Mar 2024 09:07:15 GMT, drmarmac wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/ControlUtils.java >> line 176: >> >>> 174: .distinct() >>> 175: .filter(removeRowFilter) >>> 176: .forEach(row -> { >> >>

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

2024-03-27 Thread Marius Hanl
On Tue, 26 Mar 2024 16:32:41 GMT, Kevin Rushforth wrote: > static imports (sorted alphabetically) > one blank line > ordinary imports (sorted alphabetically) > > No wildcard imports (I favor an exception for static imports). +1 for something like this. It is a simple rule and pretty sure that

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support [v2]

2024-03-27 Thread Marius Hanl
On Tue, 26 Mar 2024 20:36:02 GMT, Andy Goryachev wrote: >> I can also use `round` here. Seems to be a bit safer, I agree. > > thank you. > > one more question - is it possible to set fractional scale with the > StubToolkit, and how would that work in the StubFontLoader? Does it mean > we'll

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support [v2]

2024-03-26 Thread Marius Hanl
On Mon, 25 Mar 2024 23:00:25 GMT, Marius Hanl wrote: >> modules/javafx.graphics/src/test/java/test/com/sun/javafx/pgstub/StubFontLoader.java >> line 76: >> >>> 74: FontHelper.setNativeFont(font, nativeFont, >>> font.getName

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support

2024-03-26 Thread Marius Hanl
On Tue, 26 Mar 2024 20:40:11 GMT, Andy Goryachev wrote: > If I write a test that uses the StubToolkit, one that requires some kind of > font metrics - would that work? Will I get some kind of semi-valid values for > preferred width of a text (Text, Labeled, etc.), or I cannot really rely on >

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support [v2]

2024-03-26 Thread Marius Hanl
bit more width (1px). Checkout > the test as well for that > > Note: This only changes test setup, no 'production' code. Marius Hanl has updated the pull request incrementally with one additional commit since the last revision: improve (stub) font tests, fallback and documentation -

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support

2024-03-26 Thread Marius Hanl
On Mon, 25 Mar 2024 23:11:12 GMT, Andy Goryachev wrote: >> AFAIK, we do not have other tests with that problem. >> I tried to keep the diff small, but nothing against writing a better method >> to compare the points here with a delta. > > I am not sure why this is needed here, so my concern

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support

2024-03-25 Thread Marius Hanl
On Fri, 22 Mar 2024 22:32:25 GMT, Andy Goryachev wrote: >> In https://github.com/openjdk/jfx/pull/1405, I identified some shortcomings >> of the stub font implementation. As I don't want to clutter the PR with >> that, I decided to cherrypick the improvements I did to a new ticket and PR. >>

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v4]

2024-03-25 Thread Marius Hanl
On Fri, 22 Mar 2024 22:59:34 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - JDK-8186188: copyright >> - JDK-8186188: fix tests > > modules/javafx.cont

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support

2024-03-25 Thread Marius Hanl
On Fri, 22 Mar 2024 22:37:09 GMT, Andy Goryachev wrote: >> In https://github.com/openjdk/jfx/pull/1405, I identified some shortcomings >> of the stub font implementation. As I don't want to clutter the PR with >> that, I decided to cherrypick the improvements I did to a new ticket and PR. >>

Re: RFR: JDK-8328750: [TestBug] Improve Stub Font Support

2024-03-25 Thread Marius Hanl
On Fri, 22 Mar 2024 22:29:32 GMT, Andy Goryachev wrote: >> In https://github.com/openjdk/jfx/pull/1405, I identified some shortcomings >> of the stub font implementation. As I don't want to clutter the PR with >> that, I decided to cherrypick the improvements I did to a new ticket and PR. >>

Re: RFR: 8328718: Remove unused imports in javafx.controls

2024-03-25 Thread Marius Hanl
On Thu, 21 Mar 2024 18:47:24 GMT, Andy Goryachev wrote: > Using Eclipse IDE to remove unused imports in javafx.controls and update the > copyright year to 2024. Using wildcard for more than 10 static imports. > > This is a trivial change, 1 reviewer is probably enough. Sure. I may also need

RFR: JDK-8328750: [TestBug] Improve Stub Font Support

2024-03-21 Thread Marius Hanl
In https://github.com/openjdk/jfx/pull/1405, I identified some shortcomings of the stub font implementation. As I don't want to clutter the PR with that, I decided to cherrypick the improvements I did to a new ticket and PR. The current implementation has the following shortcomings: - It does

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v4]

2024-03-20 Thread Marius Hanl
d after we triggered the > autosize, which is what we would expect here since we measure text. > > I also copied the `TableColumnHeaderTest` and rewrote the tests for > `TreeTableView` as well, so we can catch any errors here as well since they > both use different code (although it

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v3]

2024-03-20 Thread Marius Hanl
d after we triggered the > autosize, which is what we would expect here since we measure text. > > I also copied the `TableColumnHeaderTest` and rewrote the tests for > `TreeTableView` as well, so we can catch any errors here as well since they > both use different code (although it

Re: RFR: 8328400: Minor Cleanup

2024-03-20 Thread Marius Hanl
On Tue, 19 Mar 2024 15:18:09 GMT, Andy Goryachev wrote: > - PrismTextLayout:325 misspelled 'sliptCaretOffset' > - DatePicker System.err.println L 125, 139, 172, 256 > - SpinnerTest.java L 1588, 1609 -> loses/losing (also in MenuBarSkin, > DatePickerTest, FocusTest, and a few more) > -

Re: RFR: JDK-8186188: TableColumHeader: initial auto-size broken if has graphic [v2]

2024-03-20 Thread Marius Hanl
d after we triggered the > autosize, which is what we would expect here since we measure text. > > I also copied the `TableColumnHeaderTest` and rewrote the tests for > `TreeTableView` as well, so we can catch any errors here as well since they > both use different code (although it

  1   2   3   4   5   >