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

wxScrolled display issues on wxGTK #22093

Closed
Jorilx opened this issue Feb 4, 2022 · 1 comment
Closed

wxScrolled display issues on wxGTK #22093

Jorilx opened this issue Feb 4, 2022 · 1 comment

Comments

@Jorilx
Copy link

Jorilx commented Feb 4, 2022

(Opening an issue to track a problem raised here. Please see also the related wxPython issue here)

On GTK+3, scrolled windows have two following issues:

  1. The scrollbars don't scroll up to the end leaving some space;
  2. The whole window flickers if any OnDraw or paint callback is present (which is I guess stemmed from window contents being repainted over the scrollbars).

Here is a demonstration of scrolled window sample:

Qj1LQDa

Platform and version information

  • wxWidgets: 3.1.4
  • wxWidgets port: wxGTK with GTK 3.24.5
  • OS and its version: Debian 10
@vadz vadz added the GTK label Feb 4, 2022
paulcor added a commit that referenced this issue Feb 22, 2022
With overlay scrollbars disabled, it was not possible to move the scrollbar
slider all the way to the end, and there would be some flickering when trying
to do so. Fixed by always setting the preferred size to the virtual size, and
returning the proper value for GtkScrollable policy. GtkScrolledWindow uses
the child's preferred size as the virtual size, so the preferred size must
be set for the scrollbars to be managed correctly. Additionally, there was
some confusion during the initial GTK3 port over the difference between
GtkScrolledWindow policy and GtkScrollable policy, resulting in using the
minimum size rather than the natural size.
See #22093
@paulcor
Copy link
Contributor

paulcor commented Feb 22, 2022

Closed via c3b232d

@paulcor paulcor closed this as completed Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants