hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ff8ccbc7fde46b632bcce06b49a0a26e14a3379c

commit ff8ccbc7fde46b632bcce06b49a0a26e14a3379c
Author: Jee-Yong Um <jc9...@samsung.com>
Date:   Tue Dec 30 13:11:50 2014 +0900

    elm_colorselector: Fixed to get proper min size with picker only mode
    
    Summary:
    Fixed to make colorselector have proper min size
    when colorselector is in ELM_COLORSELECTOR_PICKER mode
    
    @fix
    
    Reviewers: Hermet
    
    Subscribers: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D1832
---
 src/lib/elm_colorselector.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c
index eaa88a1..0fbdeba 100644
--- a/src/lib/elm_colorselector.c
+++ b/src/lib/elm_colorselector.c
@@ -1218,6 +1218,17 @@ _full_sizing_eval(Evas_Object *obj)
    _component_sizing_eval(obj);
 }
 
+static void
+_picker_sizing_eval(Evas_Object *obj)
+{
+   Evas_Coord minw = -1, minh = -1;
+
+   ELM_COLORSELECTOR_DATA_GET(obj, sd);
+
+   evas_object_size_hint_min_get(sd->picker, &minw, &minh);
+   evas_object_size_hint_min_set(obj, minw, minh);
+}
+
 EOLIAN static void
 _elm_colorselector_elm_layout_sizing_eval(Eo *obj, Elm_Colorselector_Data *sd)
 {
@@ -1241,6 +1252,10 @@ _elm_colorselector_elm_layout_sizing_eval(Eo *obj, 
Elm_Colorselector_Data *sd)
         _full_sizing_eval(obj);
         break;
 
+      case ELM_COLORSELECTOR_PICKER:
+        _picker_sizing_eval(obj);
+        break;
+
       case ELM_COLORSELECTOR_ALL:
         _full_sizing_eval(obj);
         break;

-- 


Reply via email to