raster pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=27cd2afdfd84d0a8379b7fffc7f60de6a471d4db
commit 27cd2afdfd84d0a8379b7fffc7f60de6a471d4db Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Mon Dec 26 11:25:40 2016 +0900 tasks - calculate min width properly given a known height of a gadget this also should apply to calculating height correctly given a known width - ie horiz or vert taskbar in a shelf. without this you can't calc min size correctly from the theme. @fix --- src/modules/tasks/e_mod_main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/tasks/e_mod_main.c b/src/modules/tasks/e_mod_main.c index 7f3b64a..5010ca6 100644 --- a/src/modules/tasks/e_mod_main.c +++ b/src/modules/tasks/e_mod_main.c @@ -408,7 +408,7 @@ _tasks_refill(Tasks *tasks) Eina_List *l; E_Client *ec; Tasks_Item *item; - Evas_Coord w, h; + Evas_Coord w, h, tw, th; while (tasks->items) { @@ -422,7 +422,12 @@ _tasks_refill(Tasks *tasks) if (tasks->items) { item = tasks->items->data; - edje_object_size_min_calc(item->o_item, &w, &h); + evas_object_geometry_get(tasks->o_items, NULL, NULL, &tw, &th); +// edje_object_size_min_calc(item->o_item, &w, &h); + if (tasks->horizontal) + edje_object_size_min_restricted_calc(item->o_item, &w, &h, 0, th); + else + edje_object_size_min_restricted_calc(item->o_item, &w, &h, tw, 0); if (!tasks->config->icon_only) { if (tasks->horizontal) --
