[gtk+/portal-race: 26/129] frame: Fix child allocation
- From: Matthias Clasen <matthiasc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+/portal-race: 26/129] frame: Fix child allocation
 
- Date: Sun,  2 Jul 2017 18:38:30 +0000 (UTC)
 
commit 46ef43791abe8e1340e3e69cda9c7bef5d5c3fc5
Author: Timm Bäder <mail baedert org>
Date:   Sat May 27 17:31:05 2017 +0200
    frame: Fix child allocation
    
    Don't add the parent's allocation from gtk_widget_get_allocation
 gtk/gtkframe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index 2779900..c2f6cd4 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -695,8 +695,8 @@ gtk_frame_real_compute_child_allocation (GtkFrame      *frame,
   else
     height = 0;
 
-  child_allocation->x = allocation.x;
-  child_allocation->y = allocation.y + height;
+  child_allocation->x = 0;
+  child_allocation->y = height;
   child_allocation->width = MAX (1, allocation.width);
   child_allocation->height = MAX (1, allocation.height - height);
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]