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:
parent
45c77f4f64
commit
d603306b70
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue