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:
83defff
)
elm_box: allow aspects 1 <= x < 0.0
author
Mike Blumenkrantz
<zmike@osg.samsung.com>
Fri, 13 Jan 2017 16:34:07 +0000
(11:34 -0500)
committer
Mike Blumenkrantz
<zmike@osg.samsung.com>
Fri, 13 Jan 2017 16:33:59 +0000
(11:33 -0500)
this was a typo in my initial implementation
@fix
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
05e88d2
..
0a34198
100644
(file)
--- a/
src/lib/elementary/els_box.c
+++ b/
src/lib/elementary/els_box.c
@@
-155,7
+155,8
@@
_smart_extents_non_homogeneous_calc(Evas_Object_Box_Data *priv, int w, int h, in
*rminh += *rh;
evas_object_size_hint_aspect_get(opt->obj, &aspect, &asx, &asy);
- if (aspect && ((asx < 1) || (asy < 1)))
+ if (aspect && ((!EINA_DBL_NONZERO(asx)) || (asx < 0.0) ||
+ (!EINA_DBL_NONZERO(asy)) || (asy < 0.0)))
{
aspect = EVAS_ASPECT_CONTROL_NONE;
ERR("Invalid aspect specified!");