diff options
author | Chris Michael <cp.michael@samsung.com> | 2016-07-27 11:12:23 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2016-07-27 11:12:23 -0400 |
commit | 3b82375835b7fc5d768d1c32ae6c4db85ee8780d (patch) | |
tree | e5ec6ec20d0d735d92dcd615fac1c4028f78d4ac | |
parent | b07a0c523ca83acf7d3ba059be33aa7d7de3ad5a (diff) | |
download | efl-3b82375835b7fc5d768d1c32ae6c4db85ee8780d.tar.gz |
elementary: Fix issue of wrong minimum size for some E dialogs
When we are calculating minimum size hints for the window object, we
should be adding framespace to maximum size, not subtracting it...
Honestly this just looks like a brain-dead typo.
Fixes T44225
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/elementary/efl_ui_win.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 3021c972db..e35589e8b4 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -2984,12 +2984,13 @@ _elm_win_resize_objects_eval(Evas_Object *obj) evas_output_framespace_get(sd->evas, &fx, &fy, &fw, &fh); minw += fw; minh += fh; - maxw -= fw; - maxh -= fh; + maxw += fw; + maxh += fh; } evas_object_size_hint_min_set(obj, minw, minh); evas_object_size_hint_max_set(obj, maxw, maxh); + evas_object_geometry_get(obj, NULL, NULL, &w, &h); if (w < minw) w = minw; if (h < minh) h = minh; |