elm/layout: add some workarounds to try handling legacy min sizes
authorMike Blumenkrantz <zmike@samsung.com>
Mon, 14 Oct 2019 13:30:23 +0000 (09:30 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 11 Nov 2019 02:18:25 +0000 (11:18 +0900)
commitc2639376046e7bfd9b28da3fffe9faab962e6440
treeafeb9b0edf6f0970d8dfea911e1204a03be04a2b
parent4f80b6d6f2be50e0e9a1e5ac5f2616db18649d98
elm/layout: add some workarounds to try handling legacy min sizes

Summary:
if a legacy widget calls evas_object_size_hint_min_set, this actually sets
efl_gfx_hint_size_restricted_min now, which is supposed to be the hint that
is used internally by widgets. as a result, there is a conflict between the
size which the user expects and the size which the widget tries to calculate.

the user size should always be respected, however, so this adds some tracking
to determine whether the layout's min size was set by the layout during its own
calc or by something externally

@fix

Reviewers: eagleeye, CHAN, woohyun, Jaehyun_Cho, cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10373
src/lib/elementary/efl_ui_layout.c
src/lib/elementary/efl_ui_layout_legacy_eo.c
src/lib/elementary/elm_widget_layout.h