Fix to show sliders in path animation example 00/38000/1
authorPaul Wisbey <p.wisbey@samsung.com>
Thu, 9 Apr 2015 10:22:52 +0000 (11:22 +0100)
committerPaul Wisbey <p.wisbey@samsung.com>
Thu, 9 Apr 2015 10:22:52 +0000 (11:22 +0100)
Change-Id: Ib2dd9aba0fc63a0607c2d0da1c095650fd9ea9d4

examples/path-animation/path-animation.cpp

index c143174..369f0b0 100644 (file)
@@ -65,6 +65,8 @@ public:
   Actor CreateVectorComponentControl( const std::string& label, const Vector3& size, bool(PathController::*callback)(Slider,float) )
   {
     TextLabel text = TextLabel::New(label);
+    text.SetResizePolicy( USE_NATURAL_SIZE, WIDTH );
+    text.SetResizePolicy( USE_NATURAL_SIZE, HEIGHT );
     text.SetColor( Vector4(0.0f,0.0f,0.0f,1.0f));
 
     Slider slider = Slider::New();