daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

Minor issue with GUI pop-up menu & scrolling #180

Open MartyBeGood opened 5 years ago

MartyBeGood commented 5 years ago

Describe the bug There's a (really small) issue with the GUI pop-up menu (maybe a follow-up of #34): The sizing is perfect as long as every match fits within the pop-up. But when vertical scrolling gets enabled, the popup doesn't get wide enough. The vertical scroll bar takes up some of the space needed for the completion menu content and so a horizontal scroll bar appears as well: nvimgtkpopupscroll nvimgtkpopupnoscroll

Obviously the width of the popup is different in these screenshots. The horizontal scrollbar scrolls for what feels like exactly the space taken up by the vertical scrollbar.

The screenshots were taken with completions from mucomplete. The issue also occurs when using <C-n> completion and there are a lot of matches.

Technical information (please complete the following information):