GtkTextView: case where adjustments are animating in ::size-allocate, resulting to text cut off
It's with GTK 3, not tested with GTK 4.
I've been able to work around this issue (with a timeout hack), but the text was frequently cut off at the bottom in gedit.
It's a regression after this commit: 9d7f1cac
So in GtkTextView::size-allocate, the GtkAdjustments are not updated if they are animating (in gedit's case, due to a call to gtk_text_view_scroll_to_mark()
).
::size-allocate is called an extra time during the scrolling because it's early on during application startup.
There are much more debugging details here:
https://wiki.gnome.org/Apps/Gedit/FixingTextCutOffBug
It would be better to fix this properly in GTK.
I'm not entirely familiar with gtktextview.c internals, but I can see what I can do.