return;
}
+static void
+_segment_resizing(void *data)
+{
+ Widget_Data *wd = elm_widget_data_get((Evas_Object *)data);
+ if (!wd) return;
+ Evas_Coord w = 0, h = 0;
+
+ evas_object_geometry_get(wd->base, NULL, NULL, &w, &h);
+
+ wd->item_width = wd->width = w;
+ wd->height = h;
+
+ _state_value_set((Evas_Object *)data);
+}
+
static void _object_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
Widget_Data *wd;
wd = elm_widget_data_get((Evas_Object *)data);
if(!wd) return;
- Evas_Coord w = 0, h = 0;
-
- evas_object_geometry_get(wd->base, NULL, NULL, &w, &h);
-
- if(wd->item_width != w && wd->height !=h)
- {
- wd->item_width = wd->width = w;
- wd->height = h;
- }
+ ecore_job_add(_segment_resizing, (Evas_Object *)data);
}
/**
}
if (sd->freeze_bounce == EINA_FALSE)
- {
- sd->pan_func.set(sd->pan_obj, x, y);
- }
+ {
+ sd->pan_func.set(sd->pan_obj, x, y);
+ }
if ((px != x) || (py != y))
edje_object_signal_emit(sd->edje_obj, "elm,action,scroll", "elm");
if (!sd->down.bounce_x_animator)
elm_smart_scroller_handler_set(Evas_Object *obj)
{
API_ENTRY return;
- Elm_Smart_Scroller_Policy *policy_h, *policy_v;
- policy_h = ELM_SMART_SCROLLER_POLICY_OFF;
- policy_v = ELM_SMART_SCROLLER_POLICY_OFF;
-
- elm_smart_scroller_policy_get(obj, &policy_h, &policy_v);
-
- if(policy_v != ELM_SMART_SCROLLER_POLICY_ON)
- elm_smart_scroller_policy_set(obj, ELM_SMART_SCROLLER_POLICY_OFF, ELM_SMART_SCROLLER_POLICY_AUTO);
+ elm_smart_scroller_policy_set(obj, ELM_SMART_SCROLLER_POLICY_OFF, ELM_SMART_SCROLLER_POLICY_AUTO);
edje_object_signal_emit(sd->edje_obj, "elm,activate,handler", "elm");
}
{
if (sd->down.dragged)
{
- sd->freeze_bounce = EINA_FALSE;
+ sd->freeze_bounce = EINA_FALSE;
elm_widget_drag_lock_x_set(sd->widget, 0);
elm_widget_drag_lock_y_set(sd->widget, 0);
}