elementary/elm_entry.c : When scrollable_set is called, scroller's

policy should be decided with consideration of single line mode.


SVN revision: 65933
This commit is contained in:
WooHyun Jung 2011-12-06 02:19:43 +00:00
parent 8c626b33ee
commit eb8d16dfb4
1 changed files with 5 additions and 1 deletions

View File

@ -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);