summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-02-20 12:11:18 +0100
committerAlexander Larsson <alexl@redhat.com>2012-02-20 12:12:05 +0100
commit8e4b17738e51b0faa062cf430ca9a56695d87f19 (patch)
tree98615a5c58ef9f9c706ef89f587c2b2f4a94771f /gtk/gtkviewport.c
parente6a8beba9de045a4697de9d4fd64822311cec7b0 (diff)
downloadgtk+-8e4b17738e51b0faa062cf430ca9a56695d87f19.tar.gz
Fix padding handling in GtkViewport
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 6476988beb..2b0e2851af 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -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);