elm_box: allow aspects 1 <= x < 0.0

this was a typo in my initial implementation

@fix
This commit is contained in:
Mike Blumenkrantz 2017-01-13 11:34:07 -05:00
parent 83defff028
commit 0ea378802d
1 changed files with 2 additions and 1 deletions

View File

@ -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!");