From 820b1bafdbcb5b47c686b461669e3936e5105023 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sat, 2 Jan 2016 11:43:44 -0500 Subject: [PATCH] box: re-set max extents sizes to -1 during recalc 0 is a "valid" max size, so using it as the default value results in a box being 0x0 if there are no explicit max size hints set on any child objects ref aef9d23550bbcd74829a5d75d5226ba394a9da87 --- legacy/elementary/src/lib/els_box.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/els_box.c b/legacy/elementary/src/lib/els_box.c index 3c1a471410..54e3d58ab5 100644 --- a/legacy/elementary/src/lib/els_box.c +++ b/legacy/elementary/src/lib/els_box.c @@ -109,7 +109,8 @@ _smart_extents_non_homogeneous_calc(Evas_Object_Box_Data *priv, int w, int h, in Eina_Bool max = EINA_TRUE, asp = EINA_FALSE; cminw = *minw, cminh = *minh; - *minw = *minh = *maxw = *maxh = 0; + *minw = *minh = 0; + *maxw = *maxh = -1; /* use pointers to values to simplify horizontal vs vertical calculations into * a single algorithm for both orientations */