{
elm_widget_on_show_region_hook_set(content, _show_region_hook, obj);
elm_widget_sub_object_add(obj, content);
- if (wd->scr)
- elm_smart_scroller_child_set(wd->scr, content);
+ if (wd->scr)
+ elm_smart_scroller_child_set(wd->scr, content);
evas_object_event_callback_add(content, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints, obj);
_sizing_eval(obj);
x = x / (w * sd->pagerel_h);
x = x * (w * sd->pagerel_h);
- if(sd->one_page){
- if(offset == 0){
- if(t > x) x = x + (w * sd->pagerel_h);
- if(t < x) x = x - (w * sd->pagerel_h);
- }
- if(offset > 0){
- if(t > x) x = x + (w * sd->pagerel_h);
- }
- if(offset < 0){
- if(t < x) x = x - (w * sd->pagerel_h);
- }
- }
+ if (sd->one_page)
+ {
+ if (offset == 0)
+ {
+ if(t > x) x = x + (w * sd->pagerel_h);
+ if(t < x) x = x - (w * sd->pagerel_h);
+ }
+ else if (offset > 0)
+ {
+ if(t > x) x = x + (w * sd->pagerel_h);
+ }
+ else if (offset < 0)
+ {
+ if(t < x) x = x - (w * sd->pagerel_h);
+ }
+ }
}
else if (sd->pagesize_h > 0)
{
x = x / (sd->pagesize_h);
x = x * (sd->pagesize_h);
- if(sd->one_page){
- if(offset == 0){
- if(t > x) x = x + (sd->pagesize_h);
- if(t < x) x = x - (sd->pagesize_h);
- }
- if(offset > 0){
- if(t > x) x = x + (sd->pagesize_h);
- }
- if(offset < 0){
- if(t < x) x = x - (sd->pagesize_h);
- }
- }
+ if(sd->one_page)
+ {
+ if (offset == 0)
+ {
+ if(t > x) x = x + (sd->pagesize_h);
+ if(t < x) x = x - (sd->pagesize_h);
+ }
+ else if (offset > 0)
+ {
+ if(t > x) x = x + (sd->pagesize_h);
+ }
+ else if (offset < 0)
+ {
+ if(t < x) x = x - (sd->pagesize_h);
+ }
+ }
}
if (x < 0) x = 0;
else if ((x + w) > cw) x = cw - w;
void elm_smart_scroller_paging_set (Evas_Object *obj, double pagerel_h, double pagerel_v, Evas_Coord pagesize_h, Evas_Coord pagesize_v);
void elm_smart_scroller_region_bring_in (Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
void elm_smart_scroller_widget_set (Evas_Object *obj, Evas_Object *wid);
-void elm_smart_scroller_page_move_set (Evas_Object *obj, Eina_Bool set);
+void elm_smart_scroller_page_move_set (Evas_Object *obj, Eina_Bool set);