From 3e41735399af818651d561a71f6d47993820acc7 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Mon, 11 Nov 2019 10:13:53 +0000 Subject: [PATCH] Ensure Text Scrolling Example works on targets with large screens --- examples/text-scrolling/text-scrolling-example.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/text-scrolling/text-scrolling-example.cpp b/examples/text-scrolling/text-scrolling-example.cpp index 922c9ce..e886331 100644 --- a/examples/text-scrolling/text-scrolling-example.cpp +++ b/examples/text-scrolling/text-scrolling-example.cpp @@ -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(); -- libgit2 0.21.4