[gtk+] Fix padding handling in GtkViewport



commit 8e4b17738e51b0faa062cf430ca9a56695d87f19
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Feb 20 12:11:18 2012 +0100

    Fix padding handling in GtkViewport

 gtk/gtkviewport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 6476988..2b0e285 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]