projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
812be4a
)
elm_box: use homogeneous layout if only one child exists
author
Mike Blumenkrantz
<zmike@osg.samsung.com>
Fri, 28 Jul 2017 19:44:43 +0000
(15:44 -0400)
committer
Mike Blumenkrantz
<zmike@osg.samsung.com>
Fri, 28 Jul 2017 19:40:47 +0000
(15:40 -0400)
this should be a small speedup for a corner case of box use
src/lib/elementary/els_box.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/els_box.c
b/src/lib/elementary/els_box.c
index
0a34198
..
f7da0bc
100644
(file)
--- 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;