Add code to limit resize to the maximum resolution.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81089
This commit is contained in:
Christopher Michael 2012-12-17 09:19:52 +00:00 committed by Christopher Michael
parent 45c77f4f64
commit d603306b70
1 changed files with 3 additions and 0 deletions

View File

@ -839,6 +839,9 @@ _e_smart_monitor_resize_event(E_Smart_Data *sd, Evas_Object *mon, void *event)
e_layout_coord_canvas_to_virtual(sd->layout.obj,
(mw + dx), (mh + dy), &nw, &nh);
/* max sure we cannot resize beyond the max */
if ((nw > sd->max.w) || (nh > sd->max.h)) return;
/* actually resize the monitor */
e_layout_child_resize(mon, nw, nh);
}