diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c index 16b6a8948e..50d2865f62 100644 --- a/gtk/gtkgrid.c +++ b/gtk/gtkgrid.c @@ -1573,10 +1573,10 @@ gtk_grid_request_allocate_children (GtkGridRequest *request, allocate_child (request, GTK_ORIENTATION_HORIZONTAL, child, &x, &width, &ignore); allocate_child (request, GTK_ORIENTATION_VERTICAL, child, &y, &height, &baseline); - child_allocation.x = allocation->x + x; - child_allocation.y = allocation->y + y; - child_allocation.width = MAX (1, width); - child_allocation.height = MAX (1, height); + child_allocation.x = x; + child_allocation.y = y; + child_allocation.width = width; + child_allocation.height = height; if (_gtk_widget_get_direction (GTK_WIDGET (request->grid)) == GTK_TEXT_DIR_RTL) child_allocation.x = allocation->x + allocation->width