devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0e4b9afeb0817ac70c84884885aecb3518b7fe5d

commit 0e4b9afeb0817ac70c84884885aecb3518b7fe5d
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Jul 13 09:40:22 2016 -0400

    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.mich...@samsung.com>
---
 src/lib/elementary/efl_ui_win.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index d93b40b..71f15a3 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)
    if (!wy) maxh = minh;
    else maxh = 32767;
 
+   if (sd->frame_obj)
+     {
+        int fx, fy, fw, fh;
+
+        evas_output_framespace_get(sd->evas, &fx, &fy, &fw, &fh);
+        minw += fw;
+        minh += 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);

-- 


Reply via email to