diff --git a/examples/path-animation/path-animation.cpp b/examples/path-animation/path-animation.cpp index c143174..369f0b0 100644 --- a/examples/path-animation/path-animation.cpp +++ b/examples/path-animation/path-animation.cpp @@ -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();