forked from enlightenment/efl
From: Jae Hwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] elm_smart_scroller_child_region_show_internal In the els_scroller of the elementary, the function "elm_smart_scroller_child_region_show_internal" have a problem. If the parameters "x,y,w,h" have the wrong value like "elm_scroller_region_show(scroller, -300, -300, 900, 900);", the scroller move the position temporarily. The scroller seem to jump. So if the value of the parameter is not valid, it should be changed to valid value. The work is applied already in the function "elm_smart_scroller_region_bring_in". It should be applied in the function "elm_smart_scroller_child_region_show_internal" too. I changed the code like bring_in function. SVN revision: 57666
This commit is contained in:
parent
1bcb936306
commit
17977b5483
|
@ -1061,7 +1061,13 @@ _elm_smart_scroller_child_region_show_internal(Evas_Object *obj, Evas_Coord x, E
|
||||||
sd->down.pdx = 0;
|
sd->down.pdx = 0;
|
||||||
sd->down.pdy = 0;
|
sd->down.pdy = 0;
|
||||||
}
|
}
|
||||||
elm_smart_scroller_child_pos_set(obj, nx, ny);
|
x = nx;
|
||||||
|
if (x < minx) x = minx;
|
||||||
|
else if ((x + w) > cw) x = cw - w;
|
||||||
|
y = ny;
|
||||||
|
if (y < miny) y = miny;
|
||||||
|
else if ((y + h) > ch) y = ch - h;
|
||||||
|
elm_smart_scroller_child_pos_set(obj, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set should be used for calculated positions, for example, when we move
|
/* Set should be used for calculated positions, for example, when we move
|
||||||
|
|
Loading…
Reference in New Issue