Gtk4 widgets sizing inside TextView

I can put a widget inside a TextView…

let anchor = self.text_buffer.create_child_anchor(text_iter);
self.text_view.add_child_at_anchor(widget, &anchor);

But I can’t get the nested widget to expand, even when setting

widget.set_hexpand(true);
widget.set_vexpand(true);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.