summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-01-02 11:43:44 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-01-02 11:45:19 -0500
commit4f0723d91eb2fffed4412965a531c070f3a07d64 (patch)
tree64ef48cc46b6e12faafdd6c05928dfe887f3e780
parent12e645b7466a61573f090cbe4e1a18669ccb26c2 (diff)
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
-rw-r--r--src/lib/els_box.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/els_box.c b/src/lib/els_box.c
index 3c1a47141..54e3d58ab 100644
--- a/src/lib/els_box.c
+++ b/src/lib/els_box.c
@@ -109,7 +109,8 @@ _smart_extents_non_homogeneous_calc(Evas_Object_Box_Data *priv, int w, int h, in
109 Eina_Bool max = EINA_TRUE, asp = EINA_FALSE; 109 Eina_Bool max = EINA_TRUE, asp = EINA_FALSE;
110 110
111 cminw = *minw, cminh = *minh; 111 cminw = *minw, cminh = *minh;
112 *minw = *minh = *maxw = *maxh = 0; 112 *minw = *minh = 0;
113 *maxw = *maxh = -1;
113 /* use pointers to values to simplify horizontal vs vertical calculations into 114 /* use pointers to values to simplify horizontal vs vertical calculations into
114 * a single algorithm for both orientations 115 * a single algorithm for both orientations
115 */ 116 */