Skip to content

Improve scaling for HiDPI displays #469

@ctrueden

Description

@ctrueden

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions