elementary: sorry, I think about it. I'm sure this one is a better fix

SVN revision: 67665
This commit is contained in:
Michael BOUCHAUD 2012-01-31 22:29:29 +00:00
parent 64ccd3765f
commit 01f1670317
1 changed files with 2 additions and 2 deletions

View File

@ -580,8 +580,8 @@ _smart_reconfigure(Smart_Data *sd)
parent = elm_widget_parent_widget_get(sd->obj);
if (parent)
evas_object_size_hint_align_get(parent, &alignh, &alignv);
if (alignh < 0.0) alignh = 0.5;
if (alignv < 0.0) alignv = 0.5;
if (alignh == EVAS_HINT_FILL) alignh = 0.5;
if (alignv == EVAS_HINT_FILL) alignv = 0.5;
x = sd->x + ((sd->w - w) * alignh);
y = sd->y + ((sd->h - h) * alignv);
evas_object_move(sd->obj, x, y);