Scrollbar isn't on window edge
Closed this issue · 3 comments
Eh, I know, It's bad, and I tried to change this.
Right now the widget tree is like this: AdwClamp>ScrolledWindow>TextView. Changing the order to ScrolledWindow>AdwClamp>TextView would solve the problem, but that introduces some bugs in the scrolling behaviour. Example: after a page load, the page would jump to the bottom, and a single scroll would make the scrollbar jump to the top of the page.
GTK has specific code to handle a TextView as a direct child of a ScrolledWindow. Putting an AdwClamp between the two widgets breaks the scrolling of the TextView.
I would like to fix this, but I haven't found a working solution yet.
By the way, you've already reported this issue before at #5 (which I closed right now)
By the way, you've already reported this issue before
Wooops, sorry, I should have checked 🙈
Have you tried asking on Matrix in #gtk or #libadwaita? There are apps that do something similar (e.g. Apostrophe), so maybe there are people there who figured this out in their apps.
GtkScrolledWindow -> AdwClampScrollable -> GtkTextView