forked from enlightenment/enlightenment
improve menu positioning for menus which have not yet generated items at the time that they are made visible
SVN revision: 79326
This commit is contained in:
parent
4535107c4a
commit
6d3694d4a9
|
@ -1134,6 +1134,13 @@ e_menu_idler_before(void)
|
|||
if (((m->cur.x) != (m->prev.x)) ||
|
||||
((m->cur.y) != (m->prev.y)))
|
||||
{
|
||||
int x, y, w, h;
|
||||
|
||||
e_zone_useful_geometry_get(m->zone, &x, &y, &w, &h);
|
||||
if ((m->cur.x + m->cur.w) > (x + w))
|
||||
m->cur.x = x + w - m->cur.w;
|
||||
if ((m->cur.y + m->cur.h) > (y + h))
|
||||
m->cur.y = y + h - m->cur.h;
|
||||
m->prev.x = m->cur.x;
|
||||
m->prev.y = m->cur.y;
|
||||
ecore_evas_move(m->ecore_evas, m->cur.x, m->cur.y);
|
||||
|
|
Loading…
Reference in New Issue