elm_conform: support different thing in Tizen 3.0 03/68703/1 accepted/tizen/common/20160511.141913 accepted/tizen/ivi/20160512.050431 accepted/tizen/mobile/20160512.050412 accepted/tizen/tv/20160512.050407 accepted/tizen/wearable/20160512.050358 submit/tizen/20160510.110856
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 9 May 2016 10:34:22 +0000 (19:34 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Mon, 9 May 2016 10:38:31 +0000 (19:38 +0900)
In Tizen 2.4, virtual keyboard size is 0 when virtual keyboard is off.
But it is different in Tizen 3.0. So I added one condition before
calculating keyboard size.

Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
Change-Id: Id76b80bead0bfaf88d681bff45eda325e8818e98

src/lib/elm_conform.c

index 8b47112..a3bf422 100644 (file)
@@ -266,6 +266,9 @@ _conformant_parts_swallow(Evas_Object *obj)
    Evas *e;
    ELM_CONFORMANT_DATA_GET(obj, sd);
    ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
+   // TIZEN_ONLY(20160509): support different thing in Tizen 3.0
+   Elm_Win_Keyboard_Mode mode;
+   //
    e = evas_object_evas_get(obj);
 
    sd->scroller = NULL;
@@ -273,13 +276,18 @@ _conformant_parts_swallow(Evas_Object *obj)
    //Virtual Keyboard
    if (edje_object_part_exists(wd->resize_obj, VIRTUALKEYPAD_PART))
      {
+        // TIZEN_ONLY(20160509): support different thing in Tizen 3.0
+        mode = elm_win_keyboard_mode_get(sd->win);
+        //
         if (!sd->virtualkeypad)
           {
              sd->virtualkeypad = evas_object_rectangle_add(e);
              elm_widget_sub_object_add(obj, sd->virtualkeypad);
              evas_object_size_hint_max_set(sd->virtualkeypad, -1, 0);
           }
-        else
+        // TIZEN_ONLY(20160509): support different thing in Tizen 3.0
+        else if (mode == ELM_WIN_KEYBOARD_ON)
+        //
           _conformant_part_sizing_eval(obj, ELM_CONFORMANT_VIRTUAL_KEYPAD_PART);
 
         evas_object_color_set(sd->virtualkeypad, 0, 0, 0, 0);