hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=5bca505bddd7619a652985d57f25a70b7f003419

commit 5bca505bddd7619a652985d57f25a70b7f003419
Author: Jee-Yong Um <con...@gmail.com>
Date:   Fri Feb 12 19:50:55 2016 +0900

    els_box: fix item sizing error
    
    Summary:
    Although items' size hint align are not set to fill,
    Elm.Box expands its items.
    This patch fixes item sizing error.
    
    Test Plan: attached sample
    
    Reviewers: cedric, jpeg, Hermet, Jaehyun, Jaehyun_Cho
    
    Differential Revision: https://phab.enlightenment.org/D3667
---
 src/lib/els_box.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/els_box.c b/src/lib/els_box.c
index fa1fdc9..40b0c67 100644
--- a/src/lib/els_box.c
+++ b/src/lib/els_box.c
@@ -14,8 +14,8 @@ _box_object_aspect_calc(int *ow, int *oh, int minw, int minh, 
int maxw, int maxh
                         int ww /* "maximum" width */, int hh /* "maximum" 
height */,
                         Evas_Aspect_Control aspect, double ratio)
 {
-   if (*ow < minw) *ow = minw;
-   if (*oh < minh) *oh = minh;
+   *ow = minw;
+   *oh = minh;
 
    switch (aspect)
      {

-- 


Reply via email to