tasks: fallthrough popup location.

This behaviour can be more intelligent, but for now it covers most
cases. Yet to see tasks in use in the wild outside a shelf, though
it can happen so should be giving something reasonable for this
choice.
This commit is contained in:
Alastair Poole 2020-08-21 10:26:25 +01:00
parent beb6041646
commit e7c4016a69
1 changed files with 3 additions and 0 deletions

View File

@ -947,6 +947,9 @@ _tasks_item_preview_add(Tasks_Item *item)
ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_UP);
break;
default:
evas_object_move(o, ox + (ow / 2), oy);
elm_ctxpopup_direction_priority_set(o, ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_DOWN,
ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_RIGHT);
break;
}
evas_object_show(o);