interface_scrollable: Add "content,resize" callback to keep backward compat 43/139343/2
authorWonki Kim <wonki_.kim@samsung.com>
Tue, 18 Jul 2017 11:15:21 +0000 (20:15 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 18 Jul 2017 11:31:28 +0000 (20:31 +0900)
There was a "content,resize" callback before tizen 3.0.
Even if it was a tizen only code block, there could be a backward compat issue
without the callback.

This commit emits the callback after whole procedure for content resizing.finished.

@tizen_feature

Change-Id: I0eccf8ebc8c704e1403056c0078bd6625d612265
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
src/lib/elm_interface_scrollable.c

index 1ce7aaf..5fd75e3 100644 (file)
     }
 
 static const char SIG_CHANGED[] = "changed";
+//TIZEN_ONLY(20170718): Add content,resize callback to keep backward compat
+static const char SIG_CONTENT_RESIZE[] = "content,resize";
+//END
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_CHANGED, ""},
+//TIZEN_ONLY(20170718): Add content,resize callback to keep backward compat
+   {SIG_CONTENT_REISZE, ""},
+//END
    {NULL, NULL}
 };
 
@@ -4565,6 +4571,9 @@ _elm_scroll_pan_changed_cb(void *data,
              //END
           }
         //END
+        //TIZEN_ONLY(20170718): Add content,resize callback to keep backward compat
+        evas_object_smart_callback_call(sid->obj, SIG_CONTENT_RESIZE, NULL);
+        //END
      }
    //TIZEN_ONLY(20170210): update pan position once pan size is changed
    //Bar should be updated on not only content size changed moment, but also pan pos/size updated moment