projects
/
platform
/
core
/
uifw
/
dali-demo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d40e848
)
Updates to Text Field demo after new Size negotiation API
38/37638/2
author
Agnelo Vaz
<agnelo.vaz@samsung.com>
Wed, 1 Apr 2015 12:55:44 +0000
(13:55 +0100)
committer
Paul Wisbey
<p.wisbey@samsung.com>
Wed, 1 Apr 2015 13:22:16 +0000
(06:22 -0700)
Change-Id: I52f3b59064ae8c1e6951132b2e3a4c38e7d4b759
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
examples/text-field/text-field-example.cpp
patch
|
blob
|
history
diff --git
a/examples/text-field/text-field-example.cpp
b/examples/text-field/text-field-example.cpp
index
ad18697
..
814ee3d
100644
(file)
--- a/
examples/text-field/text-field-example.cpp
+++ b/
examples/text-field/text-field-example.cpp
@@
-76,6
+76,10
@@
public:
stage.Add( mContainer );
TextField field = TextField::New();
+ field.SetParentOrigin( ParentOrigin::CENTER );
+ field.SetResizePolicy( FIXED, ALL_DIMENSIONS );
+ field.SetPreferredSize( Vector2(stageSize.width*0.6f, stageSize.width*0.6f) );
+
mContainer.Add( field );
field.SetProperty( TextField::Property::TEXT, "Hello" );