From ad210971f757a4b5e76bb5d906ba676df77e56ba Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 21 Jun 2012 09:06:47 +0000 Subject: [PATCH] ensure notification size cannot be too large SVN revision: 72582 --- src/modules/notification/e_mod_popup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c index 42fec5dc8..0d1c48948 100644 --- a/src/modules/notification/e_mod_popup.c +++ b/src/modules/notification/e_mod_popup.c @@ -516,6 +516,8 @@ _notification_popup_refresh(Popup_Data *popup) /* Compute the new size of the popup */ edje_object_calc_force(popup->theme); 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); evas_object_resize(popup->theme, w, h);