forked from enlightenment/efl
efl_ui/video: do not set 0x0 aspect hint
Summary: this is an error @fix Depends on D8982 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8983
This commit is contained in:
parent
f1b12b92e4
commit
97a50b43ca
|
@ -115,6 +115,7 @@ _efl_ui_video_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Video_Data *sd)
|
||||||
Evas_Coord w = 0, h = 0;
|
Evas_Coord w = 0, h = 0;
|
||||||
|
|
||||||
evas_object_size_hint_request_get(sd->emotion, &minw, &minh);
|
evas_object_size_hint_request_get(sd->emotion, &minw, &minh);
|
||||||
|
if (minw && minh)
|
||||||
evas_object_size_hint_aspect_set
|
evas_object_size_hint_aspect_set
|
||||||
(sd->emotion, EVAS_ASPECT_CONTROL_BOTH, minw, minh);
|
(sd->emotion, EVAS_ASPECT_CONTROL_BOTH, minw, minh);
|
||||||
edje_object_size_min_calc(wd->resize_obj, &w, &h);
|
edje_object_size_min_calc(wd->resize_obj, &w, &h);
|
||||||
|
@ -123,9 +124,8 @@ _efl_ui_video_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Video_Data *sd)
|
||||||
{
|
{
|
||||||
minw = w;
|
minw = w;
|
||||||
minh = h;
|
minh = h;
|
||||||
}
|
|
||||||
|
|
||||||
evas_object_size_hint_aspect_set(obj, EVAS_ASPECT_CONTROL_BOTH, minw, minh);
|
evas_object_size_hint_aspect_set(obj, EVAS_ASPECT_CONTROL_BOTH, minw, minh);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue