From adbf79a3a818dc57bf440c6c203761895bd4f004 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 1 Dec 2019 22:56:15 +0000 Subject: [PATCH] edje - min calc - ix more regressions due to optimizations again 37b55172b0d46d71f772af8fba17e1fb1b7c6c2c broke min size calc. this time it was for mouse cursors. the entry cursor was 0 sized after commit 37b55172b0d46d71f772af8fba17e1fb1b7c6c2c. this disables the "don't cacle if its 0 sized) which isnt a valid thing to skip - you caqn min size calc a 0x0 edje ... and it should then return a valid min size given that design/layout. --- src/lib/edje/edje_calc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c index aec16f9fd0..336bbc00cc 100644 --- a/src/lib/edje/edje_calc.c +++ b/src/lib/edje/edje_calc.c @@ -1006,10 +1006,6 @@ _edje_recalc_do(Edje *ed) Eina_Bool need_reinit_state = EINA_FALSE; #endif - - //Do nothing if the edje has no size, - if ((EINA_UNLIKELY(!ed->has_size)) && (!ed->calc_only) && (ed->w == 0) && (ed->h == 0)) - return; ed->has_size = EINA_TRUE; need_calc = evas_object_smart_need_recalculate_get(ed->obj);