menu - fix bug that happens as a result of fixing window obj position

similar fix to 59cfed147b50d5b5c644ec75d2c6eb34e8b84294
This commit is contained in:
Carsten Haitzler 2014-04-01 19:52:18 +09:00
parent 6f692db203
commit 3f1e7f6851
1 changed files with 11 additions and 1 deletions

View File

@ -103,7 +103,12 @@ _submenu_sizing_eval(Elm_Menu_Item *parent_it)
evas_object_geometry_get(VIEW(parent_it), &x2, &y2, &w2, &h2);
evas_object_geometry_get(parent_it->submenu.bx, &bx, &by, &bw, &bh);
evas_object_geometry_get(sd->parent, &px, &py, &pw, &ph);
if (eo_isa(sd->parent, ELM_OBJ_WIN_CLASS))
{
px = 0;
py = 0;
}
if (sd->menu_bar && !parent_it->parent)
{
x_p = x2;
@ -160,6 +165,11 @@ _sizing_eval(Evas_Object *obj)
evas_object_geometry_get(sd->location, NULL, NULL, &w_p, &h_p);
evas_object_geometry_get(sd->parent, &x2, &y2, &w2, &h2);
if (eo_isa(sd->parent, ELM_OBJ_WIN_CLASS))
{
x2 = 0;
y2 = 0;
}
evas_object_geometry_get(sd->bx, NULL, NULL, &bw, &bh);
x_p = sd->xloc;