efl_ui_win: always force resize job on first pre-render

Summary:
ensure that a resize eval occurs after the frame edje has been thawed
so that sizing will be correct in engines which either still have
broken size handling (D6019) or have sub-optimal size handling (D6145)

Reviewers: bu5hm4n, cedric

Reviewed By: bu5hm4n

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6165
This commit is contained in:
Mike Blumenkrantz 2018-05-23 10:28:05 +02:00 committed by Marcel Hollerbach
parent 379ee0d0db
commit efe5f92377
1 changed files with 6 additions and 0 deletions

View File

@ -999,6 +999,12 @@ _elm_win_pre_render(Ecore_Evas *ee)
_elm_win_frame_style_update(sd, 1, 1);
ELM_WIN_DATA_ALIVE_CHECK(obj, sd);
/* set this to handle ecore-evas engine code which incorrectly
* assumes that a client resize call is the same as a server resize
* event, or which has no server event
*/
sd->deferred_resize_job = EINA_TRUE;
/* force initial sizing on frame to enable sizing of content */
edje_object_size_min_calc(sd->frame_obj, &mw, &mh);
evas_object_resize(sd->frame_obj, mw, mh);