forked from enlightenment/efl
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:
parent
379ee0d0db
commit
efe5f92377
|
@ -999,6 +999,12 @@ _elm_win_pre_render(Ecore_Evas *ee)
|
||||||
_elm_win_frame_style_update(sd, 1, 1);
|
_elm_win_frame_style_update(sd, 1, 1);
|
||||||
ELM_WIN_DATA_ALIVE_CHECK(obj, sd);
|
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 */
|
/* force initial sizing on frame to enable sizing of content */
|
||||||
edje_object_size_min_calc(sd->frame_obj, &mw, &mh);
|
edje_object_size_min_calc(sd->frame_obj, &mw, &mh);
|
||||||
evas_object_resize(sd->frame_obj, mw, mh);
|
evas_object_resize(sd->frame_obj, mw, mh);
|
||||||
|
|
Loading…
Reference in New Issue