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>
This commit is contained in:
Chris Michael 2016-07-27 11:12:23 -04:00
parent b07a0c523c
commit 3b82375835
1 changed files with 3 additions and 2 deletions

View File

@ -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;