Change the size of the widget when changing the size using animation 98/229598/2
authorSunghyun Kim <scholb.kim@samsung.com>
Thu, 2 Apr 2020 06:48:30 +0000 (15:48 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Thu, 2 Apr 2020 06:54:14 +0000 (06:54 +0000)
Modified to change the size of the widget when changing the size using animation

Change-Id: Ib1ac8ad88716759b22c94904add4922b719efe94

widget_viewer_dali/internal/widget_view/widget_view_impl.cpp
widget_viewer_dali/internal/widget_view/widget_view_impl.h

index 2a39632201f03796f3e57635c33e07e5600b2782..cc3511c934630c1135ca866abf437713d44d4610 100644 (file)
@@ -1678,6 +1678,12 @@ void WidgetView::OnRelayout( const Vector2& size, RelayoutContainer& container )
   widget_instance_resize(mInstanceId.c_str(), size.x, size.y);
 }
 
+void WidgetView::OnSizeAnimation( Animation& animation, const Vector3& targetSize )
+{
+  Control::OnSizeAnimation( animation, targetSize );
+  widget_instance_resize(mInstanceId.c_str(), targetSize.x, targetSize.y);
+}
+
 } // namespace Internal
 
 } // namespace WidgetView
index 660ba03966647dd5617441f7a589608344767013..0911ca0218e843106405b76f38176642b05ffb66 100644 (file)
@@ -275,6 +275,11 @@ private: // From Control
    * @copydoc Toolkit::Control::OnRelayout()
    */
   virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ) override ;
+
+  /**
+   * @copydoc Toolkit::Control::OnSizeAnimation()
+   */
+  virtual void OnSizeAnimation( Animation& animation, const Vector3& targetSize ) override ;
 private:
 
   // Undefined