changing aspect on a non-layouted gadcon client sets evas aspect hint instead

This commit is contained in:
Mike Blumenkrantz 2013-08-13 11:27:42 +01:00
parent 1d324abd7a
commit 3f001ea778
1 changed files with 5 additions and 1 deletions

View File

@ -3705,7 +3705,11 @@ e_gadcon_layout_pack_aspect_set(Evas_Object *obj, int w, int h)
if (!obj) return;
bi = evas_object_data_get(obj, "e_gadcon_layout_data");
if (!bi) return;
if (!bi)
{
evas_object_size_hint_aspect_set(obj, EVAS_ASPECT_CONTROL_BOTH, w, h);
return;
}
if (bi->sd->horizontal)
{
bi->aspect.w = w;