Comments (11)
Good luck.
from minimaxsimulator.
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.
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.
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.
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.
The upstream-bug linked above contains more descriptions than mine:
OpenJDK14.0.2,
i3 4.19,
Linux 5.9.11-arch2-1Thanks @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.
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.
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.
Update 2:
The Y coordinate of my scene becomes 28 when the stage it is assigned to is show
n. 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.
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.
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)
- MemoryChangeDialog seems to be opened several times HOT 3
- PC and ACCU multiplexer connection are drawn on top of each other HOT 1
- Deleting or renaming registers causes strange SignalTable changes HOT 3
- MAR overflow exception HOT 2
- Signal Table Export Special Character Bug HOT 1
- Renaming registers causes incorrect simulation
- Opening a safed project fails sometimes HOT 3
- srahub was renamed - master
- srahub was renamed - ghpages
- Question: minimum version of maven is not defined - 3.0.5 or 3.3.9 HOT 4
- 'maven-jar-plugin'-version not specified HOT 3
- missing css files
- requirements outdated
- minor doc issue HOT 1
- [Improvement] Commandline administration HOT 6
- 1 Test Failing on MacOs Monterey HOT 4
- Repository Maintenance
- JavaFX NullpointerException crashes GUI of Steuertabelle
- Dropping PRs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minimaxsimulator.