diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2019-10-07 18:40:10 +0200 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-10-07 18:40:10 +0200 |
commit | eff717eb260e7bcac7ff4283942a239d0a4aa3f8 (patch) | |
tree | 5e03b68a54aac9a8b7ab5b599ebd047f33b5e16c | |
parent | b3cd430b0265c1ba7d46fea3f9211b5fc1490aa1 (diff) | |
download | efl-eff717eb260e7bcac7ff4283942a239d0a4aa3f8.tar.gz |
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
-rw-r--r-- | src/lib/elementary/efl_ui_win.c | 4 |
1 files 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; |