gnvim icon indicating copy to clipboard operation
gnvim copied to clipboard

Scrollbar is not updated on wildmenu

Open badosu opened this issue 6 years ago • 9 comments

When opening the menu, the scrollbar is not updated when reaching items outside the initial range.

How to reproduce:

  • Start gnvim
  • Type :<Tab>, the menu should open
  • Type <Tab> until the end of the list is reached or drag the scrollbar on the right
  • Notice the list is scrolled but scrollbar is pinned to the top

This happens on both external commandline and wildmenu. This does not occur on popupmenu.

If you have any pointers I'd be happy to try and fix this.

badosu avatar Jun 04 '19 01:06 badosu

Cant reproduce. Which gtk version are you using?

vhakulinen avatar Jun 09 '19 12:06 vhakulinen

I was able to reproduce it, using the latest gnvim. Not sure about gtk though. Do you mean the crate or a package?

smolck avatar Jun 09 '19 17:06 smolck

I mean the gtk version installed on your system.

vhakulinen avatar Jun 09 '19 17:06 vhakulinen

I am using gtk version 3.24.8

smolck avatar Jun 09 '19 18:06 smolck

I found a similar case with Geany: https://gitlab.gnome.org/GNOME/gtk/issues/615

Gtk: 3.24.8

badosu avatar Jun 09 '19 22:06 badosu

What's more strange is that this is not the case in the popupmenu: it scrolls just as expected. I tried moving around some of the code in wildmenu.rs to resemble that of the popupmenu, but I couldn't get the wildmenu's scrollbar to move; it remained motionless.

I would be interested to know if vhakulinen's gtk version is different?

smolck avatar Jun 09 '19 23:06 smolck

I'm currently running ubuntu 16.04 (gtk version 3.18) and don't (currently) have access to machine with newer OS. I'll try to find some time and spin up a VM.

(I've noticed some inconsistencies with the scroll bars on different versions of gtk and its been PITA).

vhakulinen avatar Jun 10 '19 19:06 vhakulinen

This is a minor issue atm., nothing that impedes workflow.

badosu avatar Jun 10 '19 20:06 badosu

Just noticed that the horizontal scrollbar in the wildmenu doesn't move either when dragged. To reproduce, type out a long command in the wildmenu and move the scrollbar at the bottom of the wildmenu: has the same behavior as the vertical scrollbar - it doesn't move.

smolck avatar Jun 14 '19 21:06 smolck

Gnvim was rewritten from ground up for gtk4. If the problem persists, feel free to reopen this issue.

vhakulinen avatar Nov 27 '22 13:11 vhakulinen