Scrollbars have a weird state after fold and unfold
Steps to reproduce:
- Make scrollbar appear somehow, e.g. add more list items or make them taller, etc. I used this:
stacksidebar label {
padding-top: 100px;
padding-bottom: 100px;
}
- Resize window so that leaflet is unfolded.
- Make sure the widget with scrollbar is not leaflet's
visible-child
, i.e. will be hidden after folding. - Hover over that widget to make scrollbar appear, then quickly (while scrollbar is still visible) resize window so that leaflet folds.
- Resize the window back, scrollbar is glitched
It's not just drawing, because scrollbar position/size does update when resizing the window vertically. But it's drawn behind active item, separators etc.
It can also happen to the right pane, it's not just GtkStackSidebar
. Just so happens that the example doesn't have any scrollbars by default :/