summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-16 15:30:09 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-07-17 10:54:48 -0700
commit4279f75f0b0ba7a259badf2c33356201bf7869ba (patch)
tree983b0414b03f73080f3b3466c9019737c4e7bf40
parente6393393ccafe59d4e434a78c79952601d93956a (diff)
elm/scrollable: avoid unnecessary edje recalcs
in this case we just want to trigger pending edje calcs and not force new ones. this avoids doing a full edje recalc constantly when scrolling @fix Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9335
-rw-r--r--src/lib/elementary/elm_interface_scrollable.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c
index 02b808361c..1494b2c716 100644
--- a/src/lib/elementary/elm_interface_scrollable.c
+++ b/src/lib/elementary/elm_interface_scrollable.c
@@ -1285,7 +1285,10 @@ _elm_interface_scrollable_content_viewport_geometry_get(const Eo *obj EINA_UNUSE
1285{ 1285{
1286 if (!sid->pan_obj || !sid->edje_obj) return; 1286 if (!sid->pan_obj || !sid->edje_obj) return;
1287 1287
1288 edje_object_calc_force(sid->edje_obj); 1288 /* we want to trigger any pending edje recalcs here but we don't strictly need to
1289 * trigger one if it isn't necessary
1290 */
1291 efl_canvas_group_calculate(sid->edje_obj);
1289 evas_object_geometry_get(sid->pan_obj, x, y, w, h); 1292 evas_object_geometry_get(sid->pan_obj, x, y, w, h);
1290} 1293}
1291 1294