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
This commit is contained in:
parent
f420ed7707
commit
e1a0dc5518
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue