From eff717eb260e7bcac7ff4283942a239d0a4aa3f8 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 7 Oct 2019 18:40:10 +0200 Subject: [PATCH] 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 --- src/lib/elementary/efl_ui_win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 2461e1e9e6..8ce3e59a81 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -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;