[gnome-builder] column-layout: check proper child_height
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] column-layout: check proper child_height
- Date: Sun, 18 Sep 2016 03:25:30 +0000 (UTC)
commit bb9176a11ed6de8c73e9b96fd306f2e8db2079b7
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 17 19:05:47 2016 -0700
column-layout: check proper child_height
Check the assigned child_height, not the cached copy from the child
structure.
contrib/egg/egg-column-layout.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/egg/egg-column-layout.c b/contrib/egg/egg-column-layout.c
index f45842e..91e0056 100644
--- a/contrib/egg/egg-column-layout.c
+++ b/contrib/egg/egg-column-layout.c
@@ -165,7 +165,7 @@ egg_column_layout_layout (EggColumnLayout *self,
* If the child requisition is taller than the space we have left in
* this column, we need to spill over to the next column.
*/
- if ((j != 0) && (child->req.height > alloc.height) && (column < (n_columns - 1)))
+ if ((j != 0) && (child_height > alloc.height) && (column < (n_columns - 1)))
break;
child->alloc.x = alloc.x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]