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 65612736b4d9f607658a11bfda48442e81b2da1a
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 8 21:39:16 2026 -0600

    elementary: list position manager places nothing until it has a size
    
    position_content, position_single_item and entities_ready ask the size
    cache for a size after cache_require(), which leaves no cache when every
    item reported a size of 0 (a model that has not been told one yet, rows
    that were not measured). The next line indexed that missing cache: a
    list of Efl.Ui.Exact_Model rows crashed in cache_access as soon as its
    first rows were built.
    
    Without a cache there is nothing to place: return, the layout is asked
    again when a size arrives.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/elementary/efl_ui_position_manager_list.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/elementary/efl_ui_position_manager_list.c b/src/lib/elementary/efl_ui_position_manager_list.c
index 9ba89d8383..4fc7d074f5 100644
--- a/src/lib/elementary/efl_ui_position_manager_list.c
+++ b/src/lib/elementary/efl_ui_position_manager_list.c
@@ -319,6 +319,8 @@ position_content(Eo *obj EINA_UNUSED, Efl_Ui_Position_Manager_List_Data *pd)
    if (pd->average_item_size <= 0) return;
 
    cache_require(obj, pd);
+   // No size is known yet (every item reported none): nothing to lay out until one is.
+   if (!pd->size_cache) return;
 
    //space size contains the amount of space that is outside the viewport (either to the top or to the left)
    space_size.w = (MAX(pd->abs_size.w - pd->viewport.w, 0))*pd->scroll_position.x;
@@ -447,6 +449,8 @@ _efl_ui_position_manager_list_efl_ui_position_manager_entity_position_single_ite
    if (!pd->size) return EINA_RECT(0,0,0,0);
 
    cache_require(obj, pd);
+   // No size is known yet (every item reported none): nothing to lay out until one is.
+   if (!pd->size_cache) return EINA_RECT(0,0,0,0);
 
    //space size contains the amount of space that is outside the viewport (either to the top or to the left)
    space_size.w = (MAX(pd->abs_size.w - pd->viewport.w, 0))*pd->scroll_position.x;
@@ -592,6 +596,8 @@ _efl_ui_position_manager_list_efl_ui_position_manager_entity_entities_ready(Eo *
    if (pd->average_item_size <= 0) return;
 
    cache_require(obj, pd);
+   // No size is known yet (every item reported none): nothing to lay out until one is.
+   if (!pd->size_cache) return;
 
    //space size contains the amount of space that is outside the viewport (either to the top or to the left)
    space_size.w = (MAX(pd->abs_size.w - pd->viewport.w, 0))*pd->scroll_position.x;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to