Fix padding handling in GtkViewport

This commit is contained in:
Alexander Larsson 2012-02-20 12:11:18 +01:00
parent e6a8beba9d
commit 8e4b17738e

View File

@ -343,7 +343,7 @@ viewport_get_view_allocation (GtkViewport *viewport,
}
view_allocation->x += padding.left;
view_allocation->y += padding.right;
view_allocation->y += padding.top;
view_allocation->width = MAX (1, allocation.width - padding.left - padding.right - border_width * 2);
view_allocation->height = MAX (1, allocation.height - padding.top - padding.bottom - border_width * 2);