Commit 6643fc70143e6d9b9cfcceafdcf109a1d00da33a
1 parent
1caeabf0
Fix to show sliders in path animation example
Change-Id: Ib2dd9aba0fc63a0607c2d0da1c095650fd9ea9d4
Showing
1 changed file
with
2 additions
and
0 deletions
examples/path-animation/path-animation.cpp
| ... | ... | @@ -65,6 +65,8 @@ public: |
| 65 | 65 | Actor CreateVectorComponentControl( const std::string& label, const Vector3& size, bool(PathController::*callback)(Slider,float) ) |
| 66 | 66 | { |
| 67 | 67 | TextLabel text = TextLabel::New(label); |
| 68 | + text.SetResizePolicy( USE_NATURAL_SIZE, WIDTH ); | |
| 69 | + text.SetResizePolicy( USE_NATURAL_SIZE, HEIGHT ); | |
| 68 | 70 | text.SetColor( Vector4(0.0f,0.0f,0.0f,1.0f)); |
| 69 | 71 | |
| 70 | 72 | Slider slider = Slider::New(); | ... | ... |