Arrange PanelBar widgets with varying heights

This commit is contained in:
Joel Holdsworth 2009-04-16 17:16:08 +01:00
parent 3a6ac0425c
commit 937f1f6298

View file

@ -169,9 +169,10 @@ PanelBar::on_size_allocate(Gtk::Allocation& allocation)
const Requisition child_requisition = widget->size_request();
const Gtk::Allocation child_allocation(
offset, 0,
offset,
(allocation.get_height() - child_requisition.height) / 2,
min(child_requisition.width, allocation.get_width() - offset),
allocation.get_height());
child_requisition.height);
offset += child_requisition.width;