efl_ui/win: fix max size hint eval

Summary:
win objects should never permit the max size on any axis to be 0, otherwise
the window will be clamped to 1px on the given axis

fixes T8304
@fix
Depends on D10272

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8304

Differential Revision: https://phab.enlightenment.org/D10296
This commit is contained in:
Mike Blumenkrantz 2019-10-07 18:40:10 +02:00 committed by Xavi Artigas
parent b3cd430b02
commit eff717eb26
1 changed files with 2 additions and 2 deletions

View File

@ -3715,9 +3715,9 @@ _elm_win_resize_objects_eval(Evas_Object *obj, Eina_Bool force_resize)
wx = wy = 1;
if (!wx) maxw = minw;
else if (maxw < 1) maxw = 32767;
if (maxw < 1) maxw = 32767;
if (!wy) maxh = minh;
else if (maxh < 1) maxh = 32767;
if (maxh < 1) maxh = 32767;
if (maxw < minw) maxw = minw;
if (maxh < minh) maxh = minh;
if (maxw > 32767) maxw = 32767;