From 0ed9a04f074c9c12fd6cb33688cb3af322324014 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Sun, 16 Jun 2013 17:21:19 +0900 Subject: [PATCH] [naviframe] Set hint min size of naviframe as the top item's min size Change-Id: Id33a1070f06c32c7eb10c41787a673d1ca0d4f44 --- src/lib/elc_naviframe.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index 0bff313..b7663b7 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -930,10 +930,14 @@ _elm_naviframe_smart_sizing_eval(Evas_Object *obj) { evas_object_move(VIEW(it), x, y); evas_object_resize(VIEW(it), w, h); - edje_object_size_min_calc(elm_layout_edje_get(VIEW(it)), - &it->minw, &it->minh); - if (it->minw > minw) minw = it->minw; - if (it->minh > minh) minh = it->minh; + + if (it == sd->stack->last) + { + edje_object_size_min_calc(elm_layout_edje_get(VIEW(it)), + &it->minw, &it->minh); + minw = it->minw; + minh = it->minh; + } } evas_object_size_hint_min_set(obj, minw, minh); -- 2.7.4