Commit 36e83663 authored by Jay Painter's avatar Jay Painter
Browse files

Quick fix for size allocation -- needs more work overall

parent 102b1de4
......@@ -416,13 +416,23 @@ gtk_handle_box_size_allocate (GtkWidget *widget,
hb = GTK_HANDLE_BOX (widget);
widget->allocation.x = allocation->x;
if (allocation->height > widget->requisition.height)
widget->allocation.y = allocation->y + (allocation->height - widget->requisition.height) / 2;
if (hb->child_detached)
{
if (allocation->height > widget->requisition.height)
widget->allocation.y = allocation->y +
(allocation->height - widget->requisition.height) / 2;
else
widget->allocation.y = allocation->y;
widget->allocation.height = MIN (allocation->height, widget->requisition.height);
widget->allocation.width = MIN (allocation->width, widget->requisition.width);
}
else
widget->allocation.y = allocation->y;
widget->allocation.height = MIN (allocation->height, widget->requisition.height);
widget->allocation.width = MIN (allocation->width, widget->requisition.width);
{
widget->allocation = *allocation;
}
if (GTK_WIDGET_REALIZED (hb))
gdk_window_move_resize (widget->window,
widget->allocation.x,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment