Menu

Bug/Issue: Input boxes too small

Help
Drakelet
2021-09-05
2021-11-11
  • Drakelet

    Drakelet - 2021-09-05

    Expected: expected

    Source: https://youtu.be/oVDYaG2HInU?t=3484

    Actual: actual

    ModbusPal installed via https://www.controlthings.io/platform (VirtualBox VM)

    Anyone know the cause or a solution?

    Changing the resolution doesn't make a difference.

    Cheers

     
  • archtyriel

    archtyriel - 2021-11-10

    I experienced the same issue. It appears to be something to do with a recent java version in combination with the Gnome fonts. From the recent ControlThings, there's other versions of jdk installed that you can try out:
    java-1.10.0-openjdk-amd64/
    java-1.11.0-openjdk-amd64/
    java-1.8.0-openjdk-amd64/

    I had my best luck with 1.10.0:
    /usr/lib/jvm/java-1.10.0-openjdk-amd64/bin/java -jar /usr/local/share/ModbusPal.jar
    But you still need to scroll text fields which is annoying:
    Screenshot

    But the issue still persisted from 1.6b to 1.6c. I tried messing with the gsettings text font but didn't have much luck. Messing with a few of these seems to have some improvements:
    gsettings set org.gnome.desktop.interface font-name 'Arial 9'
    And messing with the gsettings scaling:
    gsettings set org.gnome.desktop.interface text-scaling-factor 0.75
    Similarly with scaling the app, no luck:
    /usr/lib/jvm/java-1.10.0-openjdk-amd64/bin/java -Dsun.java2d.uiScale=2 -jar /usr/local/share/ModbusPal.jar

    Would love to hear if anyone squashed this. Am running ControlThings in VMWare Workstation.
    Linux ctp 5.7.0-1-amd64 #1 SMP Debian 5.7.6-1 (2020-06-24) x86_64 GNU/Linux

     

    Last edit: archtyriel 2021-11-10
  • archtyriel

    archtyriel - 2021-11-10

    Noticed that running this as root also seems to completely fix the UI/Scaling issues:
    sudo /usr/lib/jvm/java-1.10.0-openjdk-amd64/bin/java -jar ./ModbusPal.jar
    Root Window

    YMMV

     
    • Drakelet

      Drakelet - 2021-11-11

      This seeemed to work for me! ModbusPal 1.6c on ControlThings 1bD (i.e. both latest). Amazing :-)

       

Log in to post a comment.