elm_colorselector: fix not intended duplication
authorJee-Yong Um <jc9.um@samsung.com>
Fri, 19 Dec 2014 05:27:00 +0000 (14:27 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 19 Dec 2014 05:28:15 +0000 (14:28 +0900)
Summary:
When colorselector widget is added, there are two align set command on palette_box part,
but that for picker part is omitted.
Apply elm_box_align_set function to picker part correctly.

@fix

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1790

AUTHORS
src/lib/elm_colorselector.c

diff --git a/AUTHORS b/AUTHORS
index 7b1f314d0288fed360eee95cde7bdb3883fe05d9..34e5d98ace45010def55e50b90b72c40af78739a 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -160,3 +160,4 @@ Kabeer Khan <kabeer.khan@samsung.com>
 yinsc <shouchen.yin@samsung.com>
 Woochan Lee <wc0917.lee@samsung.com>
 Vitalii Vorobiov <vi.vorobiov@samsung.com>
+Jee-Yong Um <conr2d@gmail.com>
index 3d13d0716854c28734eda6185001a2a48baeddba..09942ca82a279c8138c6cad2c29a267125cd944a 100644 (file)
@@ -1574,7 +1574,7 @@ _elm_colorselector_evas_object_smart_add(Eo *obj, Elm_Colorselector_Data *priv)
    elm_box_padding_set(priv->picker,
                        (h_pad * elm_widget_scale_get(obj) * elm_config_scale_get()),
                        (v_pad * elm_widget_scale_get(obj) * elm_config_scale_get()));
-   elm_box_align_set(priv->palette_box, 0.5, 0.5);
+   elm_box_align_set(priv->picker, 0.5, 0.5);
 
    priv->mode = ELM_COLORSELECTOR_BOTH;
    priv->focused = ELM_COLORSELECTOR_PALETTE;