Closed gabrielfin closed 5 years ago
Unfortunately it doesn't seem to work on my test VM
That's Adapta, right? The issue still occured because that theme adds a margin to BriskMenuSidebarScroller
. So I added margin and padding to the height calculation as well.
It's not very pretty, I know very little about Gtk. Maybe there's a nicer way to solve this?
LGTM. It works fine with Adapta and I haven't noticed regression with a few other random themes. Can be merged if @JoshStrobl agrees.
This is probably how I would've done it as well, to be fair. LGTM, thanks for the PR!
This is a fix for an issue from the old repo: solus-project/brisk-menu#83
The problem is that
gtk_widget_get_preferred_height
expects the height to include the border width as well. Therefore, on themes* that have a border aroundBriskMenuSidebarScroller
, the scroller will always be a few pixels shorter.(*) https://github.com/ubuntu-mate/ubuntu-mate-artwork/blob/master/usr/share/themes/Ambiant-MATE/gtk-3.0/apps/mate-applications.css#L694