Modified to draw sliding text
authorYunji Park <yunji19.park@samsung.com>
Thu, 30 May 2013 08:37:37 +0000 (17:37 +0900)
committerYunji Park <yunji19.park@samsung.com>
Thu, 30 May 2013 08:37:37 +0000 (17:37 +0900)
Change-Id: Ie696504cb66a46a26f7a52233d9b00f41a2a484c

src/graphics/text/FGrp_TextTextObject.cpp

index da0474a..c921346 100644 (file)
@@ -743,10 +743,11 @@ TextObject::Compose(void)
                TextLine* pTextLine = __pTextColumn->GetTextLine(0);
                if (pTextLine != null)
                {
+                       FloatRectangle lineBounds = pTextLine->GetBoundsF();
                        int lineLength = pTextLine->GetTextLength();
                        int totalLength = __pCompositeText->GetTextLength();
 
-                       if (lineLength < totalLength)
+                       if (lineLength < totalLength || __rect.width < lineBounds.width)
                        {
                                __isActionOn = true;
                                __pTextColumn->SetSlidingPosition(0.0f);