summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-03 10:25:48 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-03 18:36:22 +0200
commitb3aba63616198175d352f5428b08d1f6e80a8eeb (patch)
tree2af8be7a3a962bff13958d053f0b633031683916
parent018ae84bbefb2a93d8d7261989914cafc185f7a0 (diff)
efl_ui_positon_manager_list: skip viewport size setting if its the same
this can be skipped. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9824
-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 4b7ac15048..a950d2d1a9 100644
--- a/src/lib/elementary/efl_ui_position_manager_list.c
+++ b/src/lib/elementary/efl_ui_position_manager_list.c
@@ -350,6 +350,8 @@ 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;
354
353 pd->viewport = size; 355 pd->viewport = size;
354 356
355 recalc_absolut_size(obj, pd); 357 recalc_absolut_size(obj, pd);