summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-09 09:03:33 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-09-09 09:03:33 -0400
commite25a56077c27a83d8b3e6574368a271d3b9ff7fa (patch)
tree6878808da4fbb665cf8647f6144d85f69561aaed
parentb3c785b650a746a11fa12d26da446ebcd05c6e86 (diff)
efl_ui_position_manager_list: fix return on viewport changes
Summary: we also need to return here when the position is not the same, or we are going to place items in the wrong spot. Reviewers: segfaultxavi, zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9869
-rw-r--r--src/lib/elementary/efl_ui_position_manager_list.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_position_manager_list.c b/src/lib/elementary/efl_ui_position_manager_list.c
index c2558ef512..dfdc6b0769 100644
--- a/src/lib/elementary/efl_ui_position_manager_list.c
+++ b/src/lib/elementary/efl_ui_position_manager_list.c
@@ -350,7 +350,11 @@ schedule_recalc_absolut_size(Eo *obj, Efl_Ui_Position_Manager_List_Data *pd)
350EOLIAN static void 350EOLIAN static void
351_efl_ui_position_manager_list_efl_ui_position_manager_entity_viewport_set(Eo *obj, Efl_Ui_Position_Manager_List_Data *pd, Eina_Rect size) 351_efl_ui_position_manager_list_efl_ui_position_manager_entity_viewport_set(Eo *obj, Efl_Ui_Position_Manager_List_Data *pd, Eina_Rect size)
352{ 352{
353 if (pd->viewport.w == size.w && pd->viewport.h == size.h) return; 353 if (pd->viewport.x == size.x &&
354 pd->viewport.y == size.y &&
355 pd->viewport.w == size.w &&
356 pd->viewport.h == size.h)
357 return;
354 358
355 pd->viewport = size; 359 pd->viewport = size;
356 360