discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fa580ee748b56ae22547679ec5c5e27436e1150c

commit fa580ee748b56ae22547679ec5c5e27436e1150c
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 e7fdfaa..c3d46cf 100644
--- a/src/modules/tasks/e_mod_main.c
+++ b/src/modules/tasks/e_mod_main.c
@@ -400,7 +400,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)
      {
@@ -414,7 +414,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)

-- 


Reply via email to