ensure notification size cannot be too large

SVN revision: 72582
This commit is contained in:
Mike Blumenkrantz 2012-06-21 09:06:47 +00:00
parent 9baedbe54f
commit ad210971f7
1 changed files with 2 additions and 0 deletions

View File

@ -516,6 +516,8 @@ _notification_popup_refresh(Popup_Data *popup)
/* Compute the new size of the popup */ /* Compute the new size of the popup */
edje_object_calc_force(popup->theme); edje_object_calc_force(popup->theme);
edje_object_size_min_calc(popup->theme, &w, &h); edje_object_size_min_calc(popup->theme, &w, &h);
w = MIN(w, popup->zone->w / 2);
h = MIN(h, popup->zone->h / 2);
e_popup_resize(popup->win, w, h); e_popup_resize(popup->win, w, h);
evas_object_resize(popup->theme, w, h); evas_object_resize(popup->theme, w, h);