Commit 3e41735399af818651d561a71f6d47993820acc7

Authored by Adeel Kazmi
1 parent 4b19d25a

Ensure Text Scrolling Example works on targets with large screens

Change-Id: Id7849881f88470672b14fb8fa737250b49ec2aa1
examples/text-scrolling/text-scrolling-example.cpp
@@ -28,7 +28,7 @@ using namespace Dali::Toolkit; @@ -28,7 +28,7 @@ using namespace Dali::Toolkit;
28 28
29 namespace 29 namespace
30 { 30 {
31 -const Vector2 DESKTOP_SIZE( Vector2( 1440.f, 1600.f ) ); 31 +const float STAGE_HEIGHT_MULTIPLIER( 1.5f );
32 const Vector2 BOX_SIZE( Vector2(330.0f, 80.0f ) ); 32 const Vector2 BOX_SIZE( Vector2(330.0f, 80.0f ) );
33 const Vector2 SCROLLING_BOX_SIZE( Vector2(330.0f, 40.0f ) ); 33 const Vector2 SCROLLING_BOX_SIZE( Vector2(330.0f, 40.0f ) );
34 const float MAX_OFFSCREEN_RENDERING_SIZE = 2048.f; 34 const float MAX_OFFSCREEN_RENDERING_SIZE = 2048.f;
@@ -135,7 +135,7 @@ public: @@ -135,7 +135,7 @@ public:
135 135
136 mAnimation = Animation::New( 1.0f ); 136 mAnimation = Animation::New( 1.0f );
137 137
138 - const Size mTargetActorSize( mStageSize.width, DESKTOP_SIZE.height ); 138 + const Size mTargetActorSize( mStageSize.width, mStageSize.height * STAGE_HEIGHT_MULTIPLIER );
139 139
140 // Create Desktop 140 // Create Desktop
141 Control desktop = Control::New(); 141 Control desktop = Control::New();