summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-07-13 09:40:22 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-13 09:40:22 -0400
commit0e4b9afeb0817ac70c84884885aecb3518b7fe5d (patch)
tree86a0f1f9555e1409d251747bd6902528b7b0672f
parent4387f34b5475bdf6136a12fdf791efe3131d07ac (diff)
elementary: Fix issue of minimum resizing in wayland
This patch fixes an issue where if you tried to resize a window to it's minimum size, the contents of the window would draw outside the window frame. Basically, when we are setting min/max size hints to the window object we need to account for framespace. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index d93b40b8d4..71f15a31b1 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -2979,6 +2979,17 @@ _elm_win_resize_objects_eval(Evas_Object *obj)
2979 if (!wy) maxh = minh; 2979 if (!wy) maxh = minh;
2980 else maxh = 32767; 2980 else maxh = 32767;
2981 2981
2982 if (sd->frame_obj)
2983 {
2984 int fx, fy, fw, fh;
2985
2986 evas_output_framespace_get(sd->evas, &fx, &fy, &fw, &fh);
2987 minw += fw;
2988 minh += fh;
2989 maxw -= fw;
2990 maxh -= fh;
2991 }
2992
2982 evas_object_size_hint_min_set(obj, minw, minh); 2993 evas_object_size_hint_min_set(obj, minw, minh);
2983 evas_object_size_hint_max_set(obj, maxw, maxh); 2994 evas_object_size_hint_max_set(obj, maxw, maxh);
2984 evas_object_geometry_get(obj, NULL, NULL, &w, &h); 2995 evas_object_geometry_get(obj, NULL, NULL, &w, &h);