From 6643fc70143e6d9b9cfcceafdcf109a1d00da33a Mon Sep 17 00:00:00 2001
From: Paul Wisbey
Date: Thu, 9 Apr 2015 11:22:52 +0100
Subject: [PATCH] Fix to show sliders in path animation example
---
examples/path-animation/path-animation.cpp | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
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();
--
libgit2 0.21.4