elementary/colorselector - padding between color items non scalable bug fix.

Signed-Off-By: ShilpaOnkar Singh <shilpa.singh@samsung.com>



SVN revision: 69667
This commit is contained in:
ShilpaOnkar Singh 2012-03-27 13:15:36 +00:00 committed by ChunEon Park
parent 43dcac275d
commit caced4ec35
1 changed files with 4 additions and 2 deletions

View File

@ -142,7 +142,8 @@ _theme_hook(Evas_Object *obj)
if (hpadstr) h_pad = atoi(hpadstr);
vpadstr = edje_object_data_get(wd->base, "vertical_pad");
if (vpadstr) v_pad = atoi(vpadstr);
elm_box_padding_set(wd->box, h_pad, v_pad);
elm_box_padding_set(wd->box, (Evas_Coord)(h_pad * elm_widget_scale_get(obj) * _elm_config->scale),
(Evas_Coord)(v_pad * elm_widget_scale_get(obj) *_elm_config->scale));
EINA_LIST_FOREACH(wd->items, elist, item)
{
elm_layout_theme_set(VIEW(item), "colorselector", "item", elm_widget_style_get(obj));
@ -1069,7 +1070,8 @@ elm_colorselector_add(Evas_Object *parent)
if (hpadstr) h_pad = atoi(hpadstr);
vpadstr = edje_object_data_get(wd->base, "vertical_pad");
if (vpadstr) v_pad = atoi(vpadstr);
elm_box_padding_set(wd->box, h_pad, v_pad);
elm_box_padding_set(wd->box, (Evas_Coord)(h_pad * elm_widget_scale_get(obj) * _elm_config->scale),
(Evas_Coord)(v_pad * elm_widget_scale_get(obj) *_elm_config->scale));
elm_box_align_set(wd->box, 0.5, 0.5);
elm_widget_sub_object_add(obj, wd->box);
evas_object_show(wd->box);