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

Improve scaling for HiDPI displays #469

Open
ctrueden opened this issue Jun 13, 2023 · 0 comments
Open

Improve scaling for HiDPI displays #469

ctrueden opened this issue Jun 13, 2023 · 0 comments

Comments

@ctrueden
Copy link
Member

Here is how sciview looks when I first launch it on my laptop's 4K display (Ubuntu 22.04):

sciview-initial

Actually...

The way it really looks is:

sciview-initial-actual

But I think that's a separate issue; see #468.

After maximizing the window, it looks like this:

sciview-maximized

So:

  1. The node tree is too short; and
  2. The panel below with help text is somehow hosed up, starting in the middle of a sentence, and with weird line breaks unaligned with the actual width of the panel.

The node tree height and panel width can be fixed by dragging the dividers:

sciview-adjusted

But it's difficult because the divider grab width is only 1 pixel, so dragging them requires futzing around for a bit before the mouse pointer lines up exactly.

The side panel is also unfortunately quite unnecessarily wide in this case, compared to what is needed to modify node properties after selecting them. It would be nice if the help text would wrap dynamically to the width of the container, rather than having hardcoded line breaks. This could be accomplished using <html> with JTextPane, rather than the current JTextArea.

Related: #222

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

1 participant