I spent few days but still can’t find solution to update ScrolledWindow
height after update its child (by model factory)
I have following configuration:
Popover::builder()
.halign(Align::Start)
.child(
>k::ScrolledWindow::builder()
.child(&list_view)
.max_content_height(400)
.hscrollbar_policy(gtk::PolicyType::Never)
.propagate_natural_height(true)
.propagate_natural_width(true)
.build(),
)
// ..
The window size is always fixed after init, and always same to initial child height. Already tried queue_resize
and set_height_request
on childs update but no success.
In other words, when the child in ScrolledWindow
reduces its height, the ScrolledWindow
keeping same: