From: urandom Date: Mon, 2 Mar 2009 13:47:50 +0000 (+0000) Subject: --oopsie in the min size calc of the flow layouts X-Git-Tag: accepted/2.0/20130306.225542~242^2~2567 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=317493bd1bd905e991086a9005edaf8e8b720186;p=profile%2Fivi%2Fevas.git --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 --- 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; }