forked from enlightenment/efl
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:
parent
b3cd430b02
commit
eff717eb26
|
@ -3715,9 +3715,9 @@ _elm_win_resize_objects_eval(Evas_Object *obj, Eina_Bool force_resize)
|
||||||
wx = wy = 1;
|
wx = wy = 1;
|
||||||
|
|
||||||
if (!wx) maxw = minw;
|
if (!wx) maxw = minw;
|
||||||
else if (maxw < 1) maxw = 32767;
|
if (maxw < 1) maxw = 32767;
|
||||||
if (!wy) maxh = minh;
|
if (!wy) maxh = minh;
|
||||||
else if (maxh < 1) maxh = 32767;
|
if (maxh < 1) maxh = 32767;
|
||||||
if (maxw < minw) maxw = minw;
|
if (maxw < minw) maxw = minw;
|
||||||
if (maxh < minh) maxh = minh;
|
if (maxh < minh) maxh = minh;
|
||||||
if (maxw > 32767) maxw = 32767;
|
if (maxw > 32767) maxw = 32767;
|
||||||
|
|
Loading…
Reference in New Issue