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
This commit is contained in:
Jee-Yong Um 2014-12-30 13:11:50 +09:00 committed by ChunEon Park
parent f86dbe4854
commit c890310c01
1 changed files with 15 additions and 0 deletions

View File

@ -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;