colorselector: Fix palette align issue
authorSubodhKumar <s7158.kumar@samsung.com>
Thu, 17 Nov 2016 08:30:58 +0000 (14:00 +0530)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 29 Nov 2016 12:32:35 +0000 (21:32 +0900)
Change-Id: I70ce116e8e3c501db36e6db49958a13c42998fd3
Signed-off-by: SubodhKumar <s7158.kumar@samsung.com>
src/lib/elm_colorselector.c

index 3e356379f00c39f67aa6d43ff155bfe58e403856..168d6c9958da956b3aa7862930802283fd6dc855 100644 (file)
@@ -1958,7 +1958,8 @@ _create_colorpalette(Evas_Object *obj)
      (h_pad * elm_widget_scale_get(obj) * elm_config_scale_get() / edje_object_base_scale_get(wd->resize_obj)),
      (v_pad * elm_widget_scale_get(obj) * elm_config_scale_get() / edje_object_base_scale_get(wd->resize_obj)));
 
-   elm_box_align_set(sd->palette_box, 0.0, 0.0);
+   elm_box_align_set(sd->palette_box, 0.5, 0.5);
+
    if (!elm_layout_content_set(obj, "elm.palette", sd->palette_box))
      elm_layout_content_set(obj, "palette", sd->palette_box);
    sd->palette_name = eina_stringshare_add("default");