Commit be1c781588b78df10efc4964bd2e64e956b18334
Committed by
Paul Wisbey
1 parent
d40e848d
Updates to Text Field demo after new Size negotiation API
Change-Id: I52f3b59064ae8c1e6951132b2e3a4c38e7d4b759 Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
Showing
1 changed file
with
4 additions
and
0 deletions
examples/text-field/text-field-example.cpp
| ... | ... | @@ -76,6 +76,10 @@ public: |
| 76 | 76 | stage.Add( mContainer ); |
| 77 | 77 | |
| 78 | 78 | TextField field = TextField::New(); |
| 79 | + field.SetParentOrigin( ParentOrigin::CENTER ); | |
| 80 | + field.SetResizePolicy( FIXED, ALL_DIMENSIONS ); | |
| 81 | + field.SetPreferredSize( Vector2(stageSize.width*0.6f, stageSize.width*0.6f) ); | |
| 82 | + | |
| 79 | 83 | mContainer.Add( field ); |
| 80 | 84 | |
| 81 | 85 | field.SetProperty( TextField::Property::TEXT, "Hello" ); | ... | ... |