summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-03 10:23:49 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-03 18:36:21 +0200
commit018ae84bbefb2a93d8d7261989914cafc185f7a0 (patch)
treeb8f9ff248a93e9819c372362841b4f677864de2f
parent1511470127d038a3c00c711a3eab076e3e73ff89 (diff)
efl_ui_position_manager_list: require cache here
the cache need to be required here, as we are going to access it later on. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9823
-rw-r--r--src/lib/elementary/efl_ui_position_manager_list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_position_manager_list.c b/src/lib/elementary/efl_ui_position_manager_list.c
index 40524ea681..4b7ac15048 100644
--- a/src/lib/elementary/efl_ui_position_manager_list.c
+++ b/src/lib/elementary/efl_ui_position_manager_list.c
@@ -290,6 +290,8 @@ position_content(Eo *obj EINA_UNUSED, Efl_Ui_Position_Manager_List_Data *pd)
290 if (!pd->size) return; 290 if (!pd->size) return;
291 if (pd->average_item_size <= 0) return; 291 if (pd->average_item_size <= 0) return;
292 292
293 cache_require(obj, pd);
294
293 //space size contains the amount of space that is outside the viewport (either to the top or to the left) 295 //space size contains the amount of space that is outside the viewport (either to the top or to the left)
294 space_size.w = (MAX(pd->abs_size.w - pd->viewport.w, 0))*pd->scroll_position.x; 296 space_size.w = (MAX(pd->abs_size.w - pd->viewport.w, 0))*pd->scroll_position.x;
295 space_size.h = (MAX(pd->abs_size.h - pd->viewport.h, 0))*pd->scroll_position.y; 297 space_size.h = (MAX(pd->abs_size.h - pd->viewport.h, 0))*pd->scroll_position.y;