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 b9c6336cee2ae79705707c67821b3817cc5ffdff
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 15 12:51:15 2026 -0600
elementary: Size_Model and Exact_Model document the EAGAIN of self.*
Efl.Ui.Size_Model and Efl.Ui.Exact_Model answer EAGAIN for self.width
and self.height until a row has been measured, which is not a size of 0,
and did not say so.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/lib/elementary/efl_ui_exact_model.eo | 3 +++
src/lib/elementary/efl_ui_size_model.eo | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/lib/elementary/efl_ui_exact_model.eo b/src/lib/elementary/efl_ui_exact_model.eo
index f42517d43d..ec395ac561 100644
--- a/src/lib/elementary/efl_ui_exact_model.eo
+++ b/src/lib/elementary/efl_ui_exact_model.eo
@@ -2,6 +2,9 @@ class @beta Efl.Ui.Exact_Model extends Efl.Ui.Size_Model
{
[[Class to be used to store object item size for List/Grid View.
+ $["self.width"] and $["self.height"] of a row nobody has measured answer $EAGAIN, not 0
+ (a row measured as 0 answers 0).
+
This model provide $["total.width"] and $["total.height"] as an accumulated size of all
its children $["self.width"] and $["self.height"] @Efl.Model.property. This is currently
assuming a vertical list only.
diff --git a/src/lib/elementary/efl_ui_size_model.eo b/src/lib/elementary/efl_ui_size_model.eo
index a0bf0d1a1d..0e13361770 100644
--- a/src/lib/elementary/efl_ui_size_model.eo
+++ b/src/lib/elementary/efl_ui_size_model.eo
@@ -6,7 +6,8 @@ class @beta Efl.Ui.Size_Model extends Efl.Composite_Model
@Efl.Model.properties.get :
- $["self.width"] and $["self.height"] define the size of this object from the point of
view of the @Efl.Ui.View that use it. They only apply to children and not to the
- top root object.
+ top root object. Until a child has been told its size they answer $EAGAIN (not ready),
+ which is not a size of 0: a view measures an item whose size is not ready.
- $["item.width"] and $["item.height"] define all the children size and are available
only on @Efl.Ui.Size_Model that do have children.
- $["total.width"] and $["total.height"] define the accumulated size used by all the children.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.