forked from enlightenment/enlightenment
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
This commit is contained in:
parent
74989a9531
commit
27cd2afdfd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue