jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=80b6750a8317b03950f22ed48adb4fa646431055

commit 80b6750a8317b03950f22ed48adb4fa646431055
Author: Jean-Philippe Andre <[email protected]>
Date:   Mon Jun 20 11:18:18 2016 +0900

    elm: Fix default image scale type
    
    Elementary image used to respect aspect ratio by default,
    corresponding to the fit_inside policy.
    
    Fixes T3914.
---
 src/lib/elementary/efl_ui_image.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_image.c 
b/src/lib/elementary/efl_ui_image.c
index 9041580..92d3e2f 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -875,13 +875,15 @@ elm_image_add(Evas_Object *parent)
 }
 
 EOLIAN static Eo *
-_efl_ui_image_eo_base_constructor(Eo *obj, Efl_Ui_Image_Data *_pd EINA_UNUSED)
+_efl_ui_image_eo_base_constructor(Eo *obj, Efl_Ui_Image_Data *pd)
 {
    obj = eo_constructor(eo_super(obj, MY_CLASS));
    evas_obj_type_set(obj, MY_CLASS_NAME_LEGACY);
    evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
    elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_IMAGE);
 
+   pd->scale_type = EFL_UI_IMAGE_SCALE_TYPE_FIT_INSIDE;
+
    return obj;
 }
 

-- 


Reply via email to