discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=531422a2bb4724784bdd43387e2efca9268f9fa2

commit 531422a2bb4724784bdd43387e2efca9268f9fa2
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jul 28 15:44:43 2017 -0400

    elm_box: use homogeneous layout if only one child exists
    
    this should be a small speedup for a corner case of box use
---
 src/lib/elementary/els_box.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/els_box.c b/src/lib/elementary/els_box.c
index 0a34198f2d..f7da0bc6c7 100644
--- a/src/lib/elementary/els_box.c
+++ b/src/lib/elementary/els_box.c
@@ -238,7 +238,7 @@ _smart_extents_calculate(Evas_Object *box, 
Evas_Object_Box_Data *priv, int w, in
    maxw = -1;
    maxh = -1;
    c = eina_list_count(priv->children);
-   if (homogeneous)
+   if (homogeneous || (c == 1))
      {
         Evas_Aspect_Control paspect = -1; //causes overflow
         int pasx = -1, pasy = -1;

-- 


Reply via email to