From 317493bd1bd905e991086a9005edaf8e8b720186 Mon Sep 17 00:00:00 2001 From: urandom Date: Mon, 2 Mar 2009 13:47:50 +0000 Subject: [PATCH] --oopsie in the min size calc of the flow layouts git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@39330 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_box.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/canvas/evas_object_box.c b/src/lib/canvas/evas_object_box.c index c31a32f..91c86d5 100644 --- a/src/lib/canvas/evas_object_box.c +++ b/src/lib/canvas/evas_object_box.c @@ -1573,7 +1573,8 @@ evas_object_box_layout_flow_horizontal(Evas_Object *o, Evas_Object_Box_Data *pri } evas_object_geometry_get(o, &x, NULL, NULL, NULL); - min_w = row_width[r]; + if (min_w < row_width[r]) + min_w = row_width[r]; min_h += row_max_h[r]; y += row_max_h[r] + inc_y; } @@ -1753,7 +1754,8 @@ evas_object_box_layout_flow_vertical(Evas_Object *o, Evas_Object_Box_Data *priv, evas_object_geometry_get(o, NULL, &y, NULL, NULL); min_w += col_max_w[c]; - min_h = col_height[c]; + if (min_h < col_height[c]) + min_h = col_height[c]; x += col_max_w[c] + inc_x; } -- 2.7.4