summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-30 13:12:14 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-07-30 13:12:52 -0400
commitc594c83a02cdd0000dd7ccefd6761ec613330278 (patch)
tree27ad35f19c2bf41d0f3f1017b2949240d8fcb907
parentd17ec12faf92d39ce26242c8a6adde4b5ead817c (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_layout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_layout.c b/src/lib/elementary/efl_ui_layout.c
index f9865d2..7107cd8 100644
--- a/src/lib/elementary/efl_ui_layout.c
+++ b/src/lib/elementary/efl_ui_layout.c
@@ -186,10 +186,8 @@ _sizing_eval(Evas_Object *obj, Efl_Ui_Layout_Data *sd, Elm_Layout_Data *ld)
186 minw = sz.w; 186 minw = sz.w;
187 minh = sz.h; 187 minh = sz.h;
188 188
189 if (minw > rest_w) 189 rest_w = MAX(minw, rest_w);
190 rest_w = minw; 190 rest_h = MAX(minh, rest_h);
191 if (minh > rest_h)
192 rest_h = minh;
193 191
194 if (ld) 192 if (ld)
195 { 193 {