From 9c12a585366c131560582a01e8d28f3acc47c19e Mon Sep 17 00:00:00 2001 From: Henrique Dante de Almeida Date: Fri, 11 Jan 2013 16:54:48 +0000 Subject: [PATCH] efl: Fix object size constraints calculation in stack layout Patch by: Henrique Dante de Almeida SVN revision: 82647 --- src/lib/evas/canvas/evas_object_box.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/evas/canvas/evas_object_box.c b/src/lib/evas/canvas/evas_object_box.c index 16d6275b67..b27b14489a 100644 --- a/src/lib/evas/canvas/evas_object_box.c +++ b/src/lib/evas/canvas/evas_object_box.c @@ -1751,14 +1751,15 @@ _box_layout_stack(Eo *o, void *_pd, va_list *list EINA_UNUSED) evas_object_geometry_get(child, NULL, NULL, &child_w, &child_h); new_w = child_w; new_h = child_h; - if (new_w > top_w) top_w = new_w; - if (new_h > top_h) top_h = new_h; _layout_set_offset_and_change_dimension_min_max_cell_bounded (child_w, &new_w, min_w, max_w, ow, &off_x, align_x, pad_l, pad_r); _layout_set_offset_and_change_dimension_min_max_cell_bounded (child_h, &new_h, min_h, max_h, oh, &off_y, align_y, pad_t, pad_b); + if (new_w > top_w) top_w = new_w; + if (new_h > top_h) top_h = new_h; + if ((new_w != child_w) || (new_h != child_h)) evas_object_resize(child, new_w, new_h); evas_object_move(child, ox + off_x, oy + off_y);