forked from enlightenment/efl
efl_ui/layout: use MAX macro for min size clamping in group calc
Summary: Depends on D9442 Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl_widgets Differential Revision: https://phab.enlightenment.org/D9447
This commit is contained in:
parent
d17ec12faf
commit
c594c83a02
|
@ -186,10 +186,8 @@ _sizing_eval(Evas_Object *obj, Efl_Ui_Layout_Data *sd, Elm_Layout_Data *ld)
|
|||
minw = sz.w;
|
||||
minh = sz.h;
|
||||
|
||||
if (minw > rest_w)
|
||||
rest_w = minw;
|
||||
if (minh > rest_h)
|
||||
rest_h = minh;
|
||||
rest_w = MAX(minw, rest_w);
|
||||
rest_h = MAX(minh, rest_h);
|
||||
|
||||
if (ld)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue