Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With OpenJDK 8u232 from AdoptOpenJDK, the ImageJ main window is cut off #87

Open
Sethur opened this issue Nov 12, 2019 · 2 comments
Open

Comments

@Sethur
Copy link

Sethur commented Nov 12, 2019

OS: Windows 10
Java: OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)

When using ImageJ 1.52r with OpenJDK 8 from AdoptOpenJDK (fresh install), the main control window gets cut off below the symbol line and on the right side (see screenshot below).

This does not happen with Oracel JRE 1.8.

image

@Sethur
Copy link
Author

Sethur commented Nov 12, 2019

Update:
I experimented a bit and tried the OpenJDK build 1.8.0_232-b09 from https://github.com/ojdkbuild/ojdkbuild , and this one works fine (see below). The issue above seems to be dependent on the specific OpenJDK implementation.
When directly comparing the two main windows, the AdoptOpenJDK version ...

  1. ... has a taller title bar, i.e. height_titlebar(AdoptOpenJDK) > height_titlebar(OracleJRE)
  2. ... is a little wider in total, i.e. width(AdoptOpenJDK) > width(OracleJRE)
  3. ... is a little taller in total, i.e. height(AdoptOpenJDK) > height(OracleJRE)

image

@rollingbits
Copy link

Hi.

This happens with me too. I workaround it by adding

-Dsun.java2d.uiScale=1

to the javaw.exe call (3rd line of the .cfg).

I use OpenJDK 14.0.1 here and I believe this is due to the fact that newer versions of java propagate the user interface scaling to the applications.

Switching back to OracleJRE 8 is also enough for the problem to disappear.

IJ is at version 1.53b here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants