aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-07-27 11:12:23 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-27 11:12:23 -0400
commit3b82375835b7fc5d768d1c32ae6c4db85ee8780d (patch)
treee5ec6ec20d0d735d92dcd615fac1c4028f78d4ac /src/lib/elementary
parentedje_edit: avoid such values like 2.77556e-17 (diff)
downloadefl-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 https://phab.enlightenment.org/T44225 Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_win.c5
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;