Ephoto: Make button's image size to follow vertical aspect.

This commit is contained in:
Daniel Juyung Seo 2014-01-08 02:14:38 +09:00
parent 08bc166384
commit 4538c84f5b
2 changed files with 2 additions and 2 deletions

View File

@ -813,7 +813,7 @@ _button_add(Evas_Object *box, const char *image)
ic = elm_icon_add(but);
elm_icon_standard_set(ic, image);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_object_content_set(but, ic);
evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);

View File

@ -428,7 +428,7 @@ _button_add(Evas_Object *box, const char *image)
ic = elm_icon_add(but);
elm_icon_standard_set(ic, image);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_object_content_set(but, ic);
evas_object_size_hint_align_set(but, EVAS_HINT_FILL, EVAS_HINT_FILL);