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

Missing vertical scroll in several tabs of options window (O571) #3082

Closed
sailoog opened this issue Mar 16, 2023 · 23 comments
Closed

Missing vertical scroll in several tabs of options window (O571) #3082

sailoog opened this issue Mar 16, 2023 · 23 comments
Assignees
Labels
Milestone

Comments

@sailoog
Copy link

sailoog commented Mar 16, 2023

Raspberry 4 - Bullseye 64bit - 8-inch screen 800x480

This is the resolution of the official monitor for Raspberry and a very good option for the boat due to its low consumption. In lower resolutions opencpn is very difficult to handle so 800x480 is the minimum resolution that we recommend in OpenPlotter.

There are some tabs in the options window where scrolling is missing and some settings remain hidden and inaccessible even for larger resolutions:

  • Charts - Chart Files: missing scroll (hidden some settings).
  • Charts - Vector Chart display: missing scroll (hidden some settings).
  • Charts - Chart Groups: missing scroll (hidden some settings).
  • Charts - o-charts: There is a vertical scroll but once the charts are selected, the "install" button is never shown, even scrolling to the end, making installation impossible.
  • Dashboard preferences: fixed window size and no scroll (hidden OK/Cancel buttons).
  • GRIB preferences: fixed window size and no scroll (hidden some settings and OK/Cancel buttons).
  • chartDownloader preferences: fixed window size and no scroll (hidden OK/Cancel buttons).
  • o-charts preferences: fixed window size and no scroll (hidden some settings and OK/Cancel buttons).

image

@sailoog sailoog added the bug label Mar 16, 2023
@nohal nohal added this to the OpenCPN 5.8.0 milestone Mar 16, 2023
@bdbcat
Copy link
Member

bdbcat commented Mar 18, 2023

Sailoog...
Will you attach/post the logfile for this particular configuration?
I have tested using "official" 7" screen, RPi3/ARMHF, Buster. Local build of O571 today.
Result: All Options panels have required scroll bars.
Thanks

@Hakansv
Copy link
Contributor

Hakansv commented Mar 19, 2023

The scroll bar is only shown if the dialog height is not enough to cover it all.
What I can see on my RPi is the right scroll bar is not shown if the pointer is outside the dialog window. It's only visible after some pointer movements inside the dialog. I can agree this is sometimes confusing. Is that a wx 3.0 "feature" and not able to control by OCPN?

@sailoog
Copy link
Author

sailoog commented Mar 19, 2023

Ok, I'll try again on Monday, but it's weird because I really did a lot of testing. I forgot to say that the options window is maximized.

@bdbcat
Copy link
Member

bdbcat commented Mar 19, 2023

I reiterate:
Everything working fine on RPI/3 Buster.

After some fiddling, I have migrated my 7" display to RPi/4, Bullseye/64. To make it work sensibly, one must disable both of the internal HDMI ports using the RPi Preferences->ScreenConfiguration.

Hakan: "What I can see on my RPi is the right scroll bar is not shown if the pointer is outside the dialog window. It's only visible after some pointer movements inside the dialog"

That is true in my arrangement, as well. The scroll bar "fades away" after no movement in some seconds. Confusing. I suspect this is some interaction between wxWidgets and GTK/Window manager. Not sure if this behaviour is configurable or not.
Further, the scroll bar does NOT appear on some options tabs at all, so this is a clear problem.

I will investigate further.

@bdbcat
Copy link
Member

bdbcat commented Mar 19, 2023

First discovery:
Fading scrollbars are a GTK3 innovation. Not universally loved at all.
Simple solution (for testing):
$export GTK_OVERLAY_SCROLLING=0
There are other, more persistent, ways to configure this action.

$ cat ~/.config/gtk-3.0/settings.ini

[Settings]
gtk-overlay-scrolling=false

Not sure what is the best approach for OpenPlotter...

More as I know it.

@leamas
Copy link
Collaborator

leamas commented Mar 19, 2023

Just a drive-by comment:

Seems that the cli command gsettings set org.gnome.desktop.interface overlay-scrolling false should make the trick since gnome on bullseye is 3.38 (the command is only available on gnome 3.34+). Not tested.

A cli command like this should be fairly simple to integrate in any installation procedure.

See : https://www.linuxuprising.com/2019/09/how-to-disable-gnomes-overlay.html

@bdbcat
Copy link
Member

bdbcat commented Mar 20, 2023

Status...
Some refactoring of Options dialog required. In process. a few more hours. Will be finished tomorrow.

@sailoog
Copy link
Author

sailoog commented Mar 20, 2023

Tested on RPi4 - bullseye 32bit and 64bit - opencpn 5.6.2 and 5.7.1 from PPA (focal). Missing scroll in all the tests in the related tabs in the first post.

@Hakansv
Copy link
Contributor

Hakansv commented Mar 21, 2023

On my RPi400 (homebrew, not flatpak)
Today's master. Now, when needed, there's a scroll bar also on Options->Charts.

The timed fading out on a stand still cursor is, of course, there as well. I haven't tested to tweak my system to avoid that.
sailoog; would the "interface overlay-scrolling false" setting be considered to include in the Openplotter setup?

@sailoog
Copy link
Author

sailoog commented Mar 21, 2023

Missing scrolls

After testing opencpn - 5.7.1+7888+77a4b15ad~ubuntu20.04.1:

  • Charts - Chart Files: OK
  • Charts - Vector Chart display: OK
  • Charts - Chart Groups: OK
  • Charts - o-charts: OK (o-charts-2.0.0.45+7382.0982c14_debian-11-arm64.tar.gz)
  • Dashboard preferences: fixed window size and no scroll (hidden OK/Cancel buttons).
  • GRIB preferences: fixed window size and no scroll (hidden some settings and OK/Cancel buttons).
  • chartDownloader preferences: fixed window size and no scroll (hidden OK/Cancel buttons).
  • o-charts preferences: fixed window size and no scroll (hidden some settings and OK/Cancel buttons).

Scroll overlay

This worked in OpenPlotter 3/Raspberry bullseye (although not working in flatpak):

$ cat ~/.config/gtk-3.0/settings.ini

[Settings]
gtk-overlay-scrolling=false

Yes, we can take care of that adding a setting in openplotter-settings (Raspberry settings tab)

@bdbcat
Copy link
Member

bdbcat commented Mar 21, 2023

So, all good on this now?

@sailoog
Copy link
Author

sailoog commented Mar 21, 2023

Not yet. Missing scroll in preferences:

  • Dashboard preferences: fixed window size and no scroll (hidden OK/Cancel buttons).
  • GRIB preferences: fixed window size and no scroll (hidden some settings and OK/Cancel buttons).
  • chartDownloader preferences: fixed window size and no scroll (hidden OK/Cancel buttons).
  • o-charts preferences: fixed window size and no scroll (hidden some settings and OK/Cancel buttons).

@Hakansv
Copy link
Contributor

Hakansv commented Mar 21, 2023

Scroll overlay..
Can this affect Androids in the same way? There will a "fading out" scroll bar create some not wanted experience as well.

@bdbcat
Copy link
Member

bdbcat commented Mar 21, 2023

No.
Android does not use GTK system widgets. It uses QT widgets, specially adapted for Android touch environment.
Good thing.....

@bdbcat
Copy link
Member

bdbcat commented Mar 21, 2023

I am currently working on adding scrollbars to Dashboard preferences. Others will follow.

@bdbcat
Copy link
Member

bdbcat commented Mar 23, 2023

Dashboard_pi, ChartDownloader_pi, and Grib_pi adjusted for smaller screen size.
Building now on PPA as 5.7.1+7898+9c296cea4

o-charts_pi coming later.

@leamas
Copy link
Collaborator

leamas commented Mar 23, 2023

This worked in OpenPlotter 3/Raspberry bullseye (although not working in flatpak):

Flatpak's config directory is in ~/.var/app/org.opencpn.OpenCPN/config/gtk-3.0/

@bdbcat
Copy link
Member

bdbcat commented Mar 24, 2023

Remaining problems with Dashboard Preferences width now corrected in github, and PPA for linux.

@sailoog
Copy link
Author

sailoog commented Mar 24, 2023

This worked in OpenPlotter 3/Raspberry bullseye (although not working in flatpak):

Flatpak's config directory is in ~/.var/app/org.opencpn.OpenCPN/config/gtk-3.0/

That worked too. Thanks!

@sailoog
Copy link
Author

sailoog commented Mar 24, 2023

Remaining problems with Dashboard Preferences width now corrected in github, and PPA for linux.

It works perfect now in 5.7.1+7901+7ff014ee2~ubuntu20.04.1

Only the o-charts preferences left. Thanks!

@bdbcat
Copy link
Member

bdbcat commented Mar 25, 2023

o-charts_pi updated to v1.0.34.0 for this platform. In plugin master catalog now.

@sailoog
Copy link
Author

sailoog commented Mar 25, 2023

Everything working now, thanks!!
Closing...

@sailoog sailoog closed this as completed Mar 25, 2023
@RoDeP0
Copy link

RoDeP0 commented Mar 30, 2023

Regarding the O-charts plug-in: I can confirm that the scroll bars are back, but the update button is still not available, which makes in-app updating impossible. Have to add that I updated to o-charts_pi v 1.0.34.0 on OpenCPN 5.6.2, because it's a production system. So it may work on OpenCPN 5.7.1+7901+7ff014ee2~ubuntu20.04.1. Raspberry Pi 4 model B 4 GB with official 7" DSI touch screen.
#edit I can now confirm that it does work in OpenCPN 5.7.1. This means that just updating the o-charts plugin is not sufficient for fixing the issue in a stable version of OpenCPN.

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

No branches or pull requests

6 participants