GtkTextView: Grows to much when inserting widgets.
Steps to reproduce
- Create a GtkTextView that takes its minimal size and can grow freely
- Insert a widget in the GtkTextView
Screenshot to see the issue (the GtkTextView has the osd
CSS class to view how much space it takes, and the content is selected to view the empty space below):
Program used for the screenshot:
Current behavior
There is always an empty blank space at the bottom of the GtkTextView when it contains a widget. With a GtkLevelBar we can even see the empty space of the GtkTextView grow twice: first when the GtkLevelBar is added, and then again when text is added.
Expected outcome
There should be no empty space at the bottom of the GtkTextView.
Version information
- GTK Version: Latest commit (
9cc7dbe9
) built with JHBuild - OS: Fedora Silverblue 36
Additional information
Context: We use GtkTextView as growable entries in Fractal and we come upon this issue when we try to add "Pills" that represent Matrix users or Matrix rooms (https://gitlab.gnome.org/GNOME/fractal/-/issues/1001). In our case the space at the bottom looks generally bigger than this example, it looks like we have enough space for two rows of the widget.