Git Product home page Git Product logo

Comments (11)

AiyionPrime avatar AiyionPrime commented on July 30, 2024 1

Good luck.

from minimaxsimulator.

prohde avatar prohde commented on July 30, 2024

It seems like this is an issue with a particular window manager. I can not reproduce it on my setups (OpenJDK 11.0.9.1 @ Ubuntu 18.04/20.04). I'd suggest to mention the use of the above command to run the application under those circumstances in the readme as well.

from minimaxsimulator.

AiyionPrime avatar AiyionPrime commented on July 30, 2024

It's appears to be an issue with every window manager that crops the top bar of applications; or in case of i3 even adds its own.
I elaborated further upstream; it's not something the simulator should need to fix, imho.

from minimaxsimulator.

MasFlam avatar MasFlam commented on July 30, 2024

Nobody is cropping the top bar, they are just not adding it to the window. The program wouldn't be able to determine in a standardized way its decoration bar height anyway afaik. Window managers are standard compliant; the issue lies on JavaFX's side which most likely expects some WM<->client protocol which isn't implemented by any of the major tiling WMs, and it's annoying as hell. I might try to dive deeper into OpenJFX code, who knows maybe I'll get somewhere.

from minimaxsimulator.

prohde avatar prohde commented on July 30, 2024

Are there any specific setups where this is happening?

I still cannot reproduce the problem on my machine.
OS: Ubuntu 20.04
Java: OpenJDK 11.0.14
JavaFX: 11.26
WM: Gnome

from minimaxsimulator.

AiyionPrime avatar AiyionPrime commented on July 30, 2024

The upstream-bug linked above contains more descriptions than mine:

OpenJDK14.0.2,
i3 4.19,
Linux 5.9.11-arch2-1

Thanks @io7m for providing the video. Have been searching for this for about an hour now, and not getting it reproduced > properly was driving me nuts -.-'

Originally posted by @AiyionPrime in javafxports/openjdk-jfx#546 (comment)

from minimaxsimulator.

MasFlam avatar MasFlam commented on July 30, 2024

Status update:
I traced down the culprit to Scene#getY() returning non-0 when it in fact should return 0 in my case. (I don't shift my scene inside of the window). This results in adding an unnecessary 28 (at least in my case) in Node#localToScreen(double localX, double localY, double localZ) to maxY and minY of the MenuButton's Bounds, (MenuBar uses MenuButton under the hood) which in turn shifts the Y coordinate of the ContextMenu that appears when the MenuButton is rolled out.
I don't know yet why Scene#getY() returns an incorrect number though. I'm also not sure where the number 28 could come from. for comparison, a Button's/MenuButton's default height for me is 24 pixels.

from minimaxsimulator.

MasFlam avatar MasFlam commented on July 30, 2024

Are there any specific setups where this is happening?

Mine is dwm running on Debian. It seems all the major tiling WMs experience this issue though.

from minimaxsimulator.

MasFlam avatar MasFlam commented on July 30, 2024

Update 2:
The Y coordinate of my scene becomes 28 when the stage it is assigned to is shown. Some event is synthesized there and during the handling of it the scene's coordinates are adjusted, though I don't understand yet the reasoning behind that. Too tired now to investigate further, will be back tomorrow :)

from minimaxsimulator.

AiyionPrime avatar AiyionPrime commented on July 30, 2024

I think your updates on the hunt are better suited for the upstream bug.
Here your audience are 'only' prohde and me, of which neither has the time to fix the upstream bug.
Hotfixing it downstream is out of scope for this project, as the sra seems to not evene have time to monitor PRs on this project.

Link is above, happy hunting!

from minimaxsimulator.

MasFlam avatar MasFlam commented on July 30, 2024

The upstream issue is archived, I cannot reply to it :/ but you're right. Maybe there is one on the openjdk/jfx repo, and if not I probably should open one.

There seems to be a similar one here

from minimaxsimulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.