A Maximized Window is a Bad One #89

Closed
opened 2020-10-08 15:14:42 +02:00 by delvh · 2 comments
Owner

It could be observed that JavaFX 15 seems to have a problem with maximized windows (it is unknown whether it was also previously there).
Whenever you maximize a Window, it can happen on certain OS (Ubuntu) that a new scene will not be loaded correctly:

image

While this does look not to bad at first, another thing is way worse:
While the components have changed their visual position, they are still expected to be where they should be. If you click randomly anywhere in the top area of the screenshot, there's a good chance you'll select one of the list elements.

Workaround: Move the application (or perform another action) to unmaximize it. Then everything should be back to normal behavior.

It could be observed that JavaFX 15 seems to have a problem with maximized windows (it is unknown whether it was also previously there). Whenever you maximize a Window, it can happen on certain OS (Ubuntu) that a new scene will not be loaded correctly: ![image](/attachments/73ef06fa-4c09-49b7-a162-872c4b52cb19) While this does look not to bad at first, another thing is way worse: While the components have changed their visual position, they are still expected to be where they should be. If you click randomly anywhere in the top area of the screenshot, there's a good chance you'll select one of the list elements. ***Workaround***: Move the application (or perform another action) to unmaximize it. Then everything should be back to normal behavior.
delvh added the
bug
client
labels 2020-10-08 15:14:42 +02:00
Owner

I have experienced a similar problem in the past, during which the new scene would be loaded at its default size, but the window wouldn't resize leaving a large amount of white space around the scene. This could also be resolved by resizing the window. I was using KDE on Debian at the time.

In fact, Mozilla Firefox has the same issue on my current setup, where it's starting maximized, but the tabs I load are displayed only inside of a certain area of the window.

As I am using KDE on Gentoo and you are using GNOME on Ubuntu, this appears to be a more general issue than just JavaFX being buggy.

I have experienced a similar problem in the past, during which the new scene would be loaded at its default size, but the window wouldn't resize leaving a large amount of white space around the scene. This could also be resolved by resizing the window. I was using KDE on Debian at the time. In fact, Mozilla Firefox has the same issue on my current setup, where it's starting maximized, but the tabs I load are displayed only inside of a certain area of the window. As I am using KDE on Gentoo and you are using GNOME on Ubuntu, this appears to be a more general issue than just JavaFX being buggy.
Owner

I do remember though, that different results could be achieved by using stage.sizeToScene() inside SceneContext.

I do remember though, that different results could be achieved by using `stage.sizeToScene()` inside `SceneContext`.
kske closed this issue 2020-11-22 11:19:42 +01:00
This repo is archived. You cannot comment on issues.
No description provided.