Ensure Text Scrolling Example works on targets with large screens 21/217421/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 11 Nov 2019 10:13:53 +0000 (10:13 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 11 Nov 2019 10:14:22 +0000 (10:14 +0000)
Change-Id: Id7849881f88470672b14fb8fa737250b49ec2aa1

examples/text-scrolling/text-scrolling-example.cpp

index 922c9ce..e886331 100644 (file)
@@ -28,7 +28,7 @@ using namespace Dali::Toolkit;
 
 namespace
 {
-const Vector2 DESKTOP_SIZE( Vector2( 1440.f, 1600.f ) );
+const float STAGE_HEIGHT_MULTIPLIER( 1.5f );
 const Vector2 BOX_SIZE( Vector2(330.0f, 80.0f ) );
 const Vector2 SCROLLING_BOX_SIZE( Vector2(330.0f, 40.0f ) );
 const float MAX_OFFSCREEN_RENDERING_SIZE = 2048.f;
@@ -135,7 +135,7 @@ public:
 
     mAnimation = Animation::New( 1.0f );
 
-    const Size mTargetActorSize( mStageSize.width, DESKTOP_SIZE.height );
+    const Size mTargetActorSize( mStageSize.width, mStageSize.height * STAGE_HEIGHT_MULTIPLIER );
 
     // Create Desktop
     Control desktop = Control::New();