diff options
author | Jee-Yong Um <jc9.um@samsung.com> | 2014-12-30 13:11:50 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2014-12-30 13:11:50 +0900 |
commit | ff8ccbc7fde46b632bcce06b49a0a26e14a3379c (patch) | |
tree | 0f1552a5c29651026df494f8e84981b6b405ed93 | |
parent | b76cff37bfe23e591dc79c9682f8fedbf10a049d (diff) | |
download | elementary-ff8ccbc7fde46b632bcce06b49a0a26e14a3379c.tar.gz |
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
-rw-r--r-- | src/lib/elm_colorselector.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c index eaa88a1f3..0fbdeba03 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; |