summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorShilpaOnkar Singh <shilpa.singh@samsung.com>2012-03-27 13:15:36 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-03-27 13:15:36 +0000
commitcaced4ec35a565684a4c1b10f4a5e02d2be26bf3 (patch)
treec7fcb3d894df82e1f9d222409dc86c602fc603eb /legacy/elementary
parent43dcac275d98cd4773dc516aa2d3aceb7543d3c4 (diff)
elementary/colorselector - padding between color items non scalable bug fix.
Signed-Off-By: ShilpaOnkar Singh <shilpa.singh@samsung.com> SVN revision: 69667
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/lib/elm_colorselector.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/elementary/src/lib/elm_colorselector.c b/legacy/elementary/src/lib/elm_colorselector.c
index 00b533d0f5..382e7fdf11 100644
--- a/legacy/elementary/src/lib/elm_colorselector.c
+++ b/legacy/elementary/src/lib/elm_colorselector.c
@@ -142,7 +142,8 @@ _theme_hook(Evas_Object *obj)
142 if (hpadstr) h_pad = atoi(hpadstr); 142 if (hpadstr) h_pad = atoi(hpadstr);
143 vpadstr = edje_object_data_get(wd->base, "vertical_pad"); 143 vpadstr = edje_object_data_get(wd->base, "vertical_pad");
144 if (vpadstr) v_pad = atoi(vpadstr); 144 if (vpadstr) v_pad = atoi(vpadstr);
145 elm_box_padding_set(wd->box, h_pad, v_pad); 145 elm_box_padding_set(wd->box, (Evas_Coord)(h_pad * elm_widget_scale_get(obj) * _elm_config->scale),
146 (Evas_Coord)(v_pad * elm_widget_scale_get(obj) *_elm_config->scale));
146 EINA_LIST_FOREACH(wd->items, elist, item) 147 EINA_LIST_FOREACH(wd->items, elist, item)
147 { 148 {
148 elm_layout_theme_set(VIEW(item), "colorselector", "item", elm_widget_style_get(obj)); 149 elm_layout_theme_set(VIEW(item), "colorselector", "item", elm_widget_style_get(obj));
@@ -1069,7 +1070,8 @@ elm_colorselector_add(Evas_Object *parent)
1069 if (hpadstr) h_pad = atoi(hpadstr); 1070 if (hpadstr) h_pad = atoi(hpadstr);
1070 vpadstr = edje_object_data_get(wd->base, "vertical_pad"); 1071 vpadstr = edje_object_data_get(wd->base, "vertical_pad");
1071 if (vpadstr) v_pad = atoi(vpadstr); 1072 if (vpadstr) v_pad = atoi(vpadstr);
1072 elm_box_padding_set(wd->box, h_pad, v_pad); 1073 elm_box_padding_set(wd->box, (Evas_Coord)(h_pad * elm_widget_scale_get(obj) * _elm_config->scale),
1074 (Evas_Coord)(v_pad * elm_widget_scale_get(obj) *_elm_config->scale));
1073 elm_box_align_set(wd->box, 0.5, 0.5); 1075 elm_box_align_set(wd->box, 0.5, 0.5);
1074 elm_widget_sub_object_add(obj, wd->box); 1076 elm_widget_sub_object_add(obj, wd->box);
1075 evas_object_show(wd->box); 1077 evas_object_show(wd->box);