From bba2c803abd3fdf41c6a06c8238de918d79e8312 Mon Sep 17 00:00:00 2001 From: Wang Quanxian Date: Wed, 3 Apr 2013 13:50:03 +0800 Subject: [PATCH] Revert the commit 'make sure not exceed evas geometry size before hint size setting.' From QA testing, it will bring more side effect on layout for text. --- src/lib/elm_layout.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c index 49a6f2d..ddce6c3 100644 --- a/src/lib/elm_layout.c +++ b/src/lib/elm_layout.c @@ -125,12 +125,8 @@ static void _sizing_eval(Evas_Object *obj, Elm_Layout_Smart_Data *sd) { Evas_Coord minw = -1, minh = -1; - int w, h = 0; edje_object_size_min_calc(ELM_WIDGET_DATA(sd)->resize_obj, &minw, &minh); - evas_object_geometry_get(obj, NULL, NULL, &w, &h); - if (minh > h ) minh = h; - if (minw > w ) minw = w; evas_object_size_hint_min_set(obj, minw, minh); evas_object_size_hint_max_set(obj, -1, -1); } -- 2.7.4