efl_ui_layout: set needs_size_calc flag at constructor
authorWonki Kim <wonki_.kim@samsung.com>
Mon, 22 Jul 2019 13:08:55 +0000 (09:08 -0400)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 23 Jul 2019 05:09:40 +0000 (14:09 +0900)
commit3191e74b08cc37deca147134f32f81de1b2928c3
tree55b24c30d5a90612853e0dc80d76c88f7764f5a2
parent6fc27bdd5cba46528fc5ddd33aace9c4a5ad40af
efl_ui_layout: set needs_size_calc flag at constructor

Summary:
even if there is a min definition on theme for some object,
the objects don't have the min size if we do nothing after creating it.

elm_layout_sizing_eval will return with doing nothing while executing contructor
so that _sizing_eval in _layout_group_calculate will never be invoked without calling hint_set, text_set, content_set, etc.

this patch modifies a initial state of needs_size_calc flag
so that object will doing _sizing_eval after executing constructor.

Test Plan:
1. remove lines that call apis such as content_set, hint_set, text_set
  in radio test on elementary_test

2. observe that radios don't have min size

Reviewers: bu5hm4n, Hermet, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9368
src/lib/elementary/efl_ui_layout.c