forked from enlightenment/efl
elm list: Fixed elm_list_scroller_policy_set(). Closed ticket #842.
SVN revision: 62956
This commit is contained in:
parent
0dad9657af
commit
12f074553c
|
@ -2013,11 +2013,11 @@ elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm
|
||||||
{
|
{
|
||||||
ELM_CHECK_WIDTYPE(obj, widtype);
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||||
Widget_Data *wd = elm_widget_data_get(obj);
|
Widget_Data *wd = elm_widget_data_get(obj);
|
||||||
if (!wd) return;
|
if ((!wd) || (!wd->scr)) return;
|
||||||
if ((policy_h >= ELM_SCROLLER_POLICY_LAST) ||
|
if ((policy_h >= ELM_SCROLLER_POLICY_LAST) ||
|
||||||
(policy_v >= ELM_SCROLLER_POLICY_LAST))
|
(policy_v >= ELM_SCROLLER_POLICY_LAST))
|
||||||
if (wd->scr)
|
return;
|
||||||
elm_smart_scroller_policy_set(wd->scr, policy_h, policy_v);
|
elm_smart_scroller_policy_set(wd->scr, policy_h, policy_v);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
|
Loading…
Reference in New Issue