diff --git a/libs/widgets/pane.cc b/libs/widgets/pane.cc index f74b245c9d..7bbdd7ecff 100644 --- a/libs/widgets/pane.cc +++ b/libs/widgets/pane.cc @@ -321,6 +321,12 @@ Pane::reallocate (Gtk::Allocation const & alloc) } else { child_alloc.set_height (max (child_alloc.get_height(), (*child)->minsize)); } + } else if ((*child)->w->is_visible ()) { + if (horizontal) { + child_alloc.set_width (max (child_alloc.get_width(), cr.width)); + } else { + child_alloc.set_height (max (child_alloc.get_height(), cr.height)); + } } if ((*child)->w->is_visible ()) {