From 7cea6331b6e1242056c5331c9515e2cb71513c00 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Tue, 6 Dec 2011 02:19:43 +0000 Subject: [PATCH] elementary/elm_entry.c : When scrollable_set is called, scroller's policy should be decided with consideration of single line mode. SVN revision: 65933 --- src/lib/elm_entry.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 6524456..6da436e 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -3227,7 +3227,11 @@ elm_entry_scrollable_set(Evas_Object *obj, Eina_Bool scroll) EINA_TRUE); } elm_smart_scroller_bounce_allow_set(wd->scroller, wd->h_bounce, wd->v_bounce); - elm_smart_scroller_policy_set(wd->scroller, map[wd->policy_h], map[wd->policy_v]); + if (wd->single_line) + elm_smart_scroller_policy_set(wd->scroller, ELM_SMART_SCROLLER_POLICY_OFF, + ELM_SMART_SCROLLER_POLICY_OFF); + else + elm_smart_scroller_policy_set(wd->scroller, map[wd->policy_h], map[wd->policy_v]); elm_widget_sub_object_add(obj, wd->ent); elm_smart_scroller_child_set(wd->scroller, wd->ent); evas_object_show(wd->scroller); -- 2.7.4