elm_box: Fix miscalculated items' size issue in homogeneous box
authorJee-Yong Um <conr2d@gmail.com>
Mon, 23 Feb 2015 08:59:52 +0000 (17:59 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 23 Feb 2015 08:59:52 +0000 (17:59 +0900)
commitc0e8ebc9717212b026b5bebbc5f27ce6802a9729
tree97f04a7e42dea840f34c09cecbc726ff505e59df
parentebe640cc2d802b3651abf7745fe929f5233711e1
elm_box: Fix miscalculated items' size issue in homogeneous box

Summary:
When box has expanded items (evas_object_size_hint_weight_set() with EVAS_HINT_EXPAND)
and homogeneous is set (elm_box_homogeneous_set() with EINA_TRUE),
there is a bug that it miscalculates its items size omitting padding size (space among items),
so the last item looks cropped or having smaller size than others.
This patch makes box calculate its items' size correctly.

T2033

Reviewers: Hermet, seoz

Subscribers: seoz, Hermet

Maniphest Tasks: T2033

Differential Revision: https://phab.enlightenment.org/D2016
legacy/elementary/src/lib/els_box.c