elm colorselector: Palette items resize issue when item size is more than finger size and fixed: 1 1 warning in picker. Patch by Shilpa Onkar Singh <shilpa.singh@samsung.com>

On Tue, Dec 11, 2012 at 8:46 PM, SHILPA ONKAR SINGH <shilpa.singh@samsung.com> wrote:

    Hi All,

    Please find attached bug fix patch for Colorselector.
    This patch fixes the resize issue in palette which happens when
    palette item size is given more than finger size.

    This patch also fixes a fixed: 1 1 warning shown in picker(New addition to colorselector).
    This warning can be seen when we shift from "both mode"(palette+component)  to picker
    mode and back to both mode.

    Change description:
       elm_colorselector: Palette items resize issue when item size is more than finger size and fixed: 1 1 warning in picker
    fixed.

    Signed-Off by: Shilpa Singh(shilpa.singh@samsung.com)

     Thanks & Regards
    Shilpa Singh

SVN revision: 80937
This commit is contained in:
Daniel Juyung Seo 2012-12-14 12:17:49 +00:00
parent fcf290bab5
commit 2e31628963
2 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,7 @@ group {
scale: 1;
description { state: "default" 0.0;
align: 0.0 0.0;
fixed: 0 1;
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 0.0;
}

View File

@ -1341,6 +1341,15 @@ _access_widget_item_register(Elm_Color_Item *it)
_elm_access_callback_set(ai, ELM_ACCESS_INFO, _access_info_cb, it);
}
static void
_item_resize(void *data __UNUSED__,
Evas *e __UNUSED__,
Evas_Object *obj,
void *event_info __UNUSED__)
{
elm_layout_sizing_eval(obj);
}
static Elm_Color_Item *
_item_new(Evas_Object *obj)
{
@ -1355,6 +1364,8 @@ _item_new(Evas_Object *obj)
evas_object_size_hint_weight_set
(VIEW(item), EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(VIEW(item), EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_event_callback_add
(VIEW(item), EVAS_CALLBACK_RESIZE, _item_resize, NULL);
item->color_obj = edje_object_add(evas_object_evas_get(obj));
elm_widget_theme_object_set