summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_box_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_box_stack.c')
-rw-r--r--src/lib/elementary/efl_ui_box_stack.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/elementary/efl_ui_box_stack.c b/src/lib/elementary/efl_ui_box_stack.c
index 3b8f2fa..38bc96c 100644
--- a/src/lib/elementary/efl_ui_box_stack.c
+++ b/src/lib/elementary/efl_ui_box_stack.c
@@ -9,7 +9,7 @@ _efl_ui_box_stack_efl_pack_layout_layout_update(Eo *obj, void *_pd EINA_UNUSED)
9{ 9{
10 Evas_Object_Box_Option *opt; 10 Evas_Object_Box_Option *opt;
11 Evas_Object_Box_Data *bd; 11 Evas_Object_Box_Data *bd;
12 Eina_Size2D min = { 0, 0 }; 12 Eina_Size2D min = { 0, 0 }, cmin;
13 Eina_List *l; 13 Eina_List *l;
14 14
15 EINA_SAFETY_ON_FALSE_RETURN(efl_isa(obj, EFL_UI_BOX_CLASS)); 15 EINA_SAFETY_ON_FALSE_RETURN(efl_isa(obj, EFL_UI_BOX_CLASS));
@@ -24,11 +24,10 @@ _efl_ui_box_stack_efl_pack_layout_layout_update(Eo *obj, void *_pd EINA_UNUSED)
24 EINA_LIST_FOREACH(bd->children, l, opt) 24 EINA_LIST_FOREACH(bd->children, l, opt)
25 { 25 {
26 Evas_Object *child = opt->obj; 26 Evas_Object *child = opt->obj;
27 int mw = 0, mh = 0;
28 27
29 efl_gfx_size_hint_combined_min_get(child, &mw, &mh); 28 cmin = efl_gfx_size_hint_combined_min_get(child);
30 if (mw > min.w) min.w = mw; 29 if (cmin.w > min.w) min.w = cmin.w;
31 if (mh > min.h) min.h = mh; 30 if (cmin.h > min.h) min.h = cmin.h;
32 } 31 }
33 efl_gfx_size_hint_restricted_min_set(obj, min); 32 efl_gfx_size_hint_restricted_min_set(obj, min);
34} 33}