This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit 9f8f02ce8ec6eeceaf63f96ba57a20bfb596dd00
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Nov 10 20:27:25 2026 -0600
elementary: exact_model: clear a removed row's size after the listeners
The height of the last row that left stayed answerable until the next
removal. It is for the listeners of the removal, so a listener of the
last priority clears it once they have all had it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/lib/elementary/efl_ui_exact_model.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/src/lib/elementary/efl_ui_exact_model.c b/src/lib/elementary/efl_ui_exact_model.c
index a041597ebe..88cf7df35d 100644
--- a/src/lib/elementary/efl_ui_exact_model.c
+++ b/src/lib/elementary/efl_ui_exact_model.c
@@ -58,6 +58,7 @@ struct _Efl_Ui_Exact_Model_Data
static void _efl_ui_exact_model_child_added(void *data, const Efl_Event *event);
static void _efl_ui_exact_model_child_removed(void *data, const Efl_Event *event);
+static void _efl_ui_exact_model_child_removed_done(void *data, const Efl_Event *event);
// Before anything that is told of the change (the view, the position manager),
// the sizes have to be where the rows now are.
@@ -83,8 +84,13 @@ _efl_ui_exact_model_efl_object_constructor(Eo *obj, Efl_Ui_Exact_Model_Data *pd)
obj = efl_constructor(efl_super(obj, EFL_UI_EXACT_MODEL_CLASS));
// (only the root keeps sizes)
if (obj && !pd->parent)
- efl_event_callback_array_priority_add(obj, exact_model_callbacks(),
- EFL_UI_EXACT_MODEL_FIRST, pd);
+ {
+ efl_event_callback_array_priority_add(obj, exact_model_callbacks(),
+ EFL_UI_EXACT_MODEL_FIRST, pd);
+ // What was kept of the row that left is for the listeners of the event only
+ efl_event_callback_priority_add(obj, EFL_MODEL_EVENT_CHILD_REMOVED, SHRT_MAX,
+ _efl_ui_exact_model_child_removed_done, pd);
+ }
return obj;
}
@@ -636,6 +642,14 @@ _efl_ui_exact_model_child_removed(void *data, const Efl_Event *event)
_efl_ui_exact_model_shift(data, ev->index, EINA_FALSE);
}
+static void
+_efl_ui_exact_model_child_removed_done(void *data, const Efl_Event *event EINA_UNUSED)
+{
+ Efl_Ui_Exact_Model_Data *root = data;
+
+ root->removed.measured = EINA_FALSE;
+}
+
static Eina_Future *
_efl_ui_exact_model_efl_model_property_set(Eo *obj, Efl_Ui_Exact_Model_Data *pd,
const char *property, Eina_Value *value)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.