tasks - apply min size to icon only mode too

This commit is contained in:
Carsten Haitzler 2020-05-03 21:07:01 +01:00
parent ead3991e3f
commit cbca5fa3f3
1 changed files with 6 additions and 9 deletions

View File

@ -424,16 +424,13 @@ _tasks_refill(Tasks *tasks)
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)
{
if (tasks->horizontal)
{
if (w < tasks->config->minw) w = tasks->config->minw;
}
else
{
if (h < tasks->config->minh) h = tasks->config->minh;
}
if (w < tasks->config->minw) w = tasks->config->minw;
}
else
{
if (h < tasks->config->minh) h = tasks->config->minh;
}
if (!tasks->gcc->resizable)
{