Revert "[Tizen] Do not substarct outline width in text-controller"
authorSunghyun kim <scholb.kim@samsung.com>
Mon, 2 Jul 2018 06:05:25 +0000 (15:05 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Mon, 2 Jul 2018 06:05:31 +0000 (15:05 +0900)
This reverts commit a1ac009321d21baecadf3089d28967265aac1ad7.

Change-Id: If3ca2a11796664b2f858ece5f9c1dbd4c271381f

dali-toolkit/internal/text/text-controller.cpp

index a2f0db2..7192281 100755 (executable)
@@ -3512,7 +3512,8 @@ bool Controller::DoRelayout( const Size& size,
     const float outlineWidth = static_cast<float>( mImpl->mModel->GetOutlineWidth() );
 
     // Set the layout parameters.
-    Layout::Parameters layoutParameters( size,
+    const Vector2 sizeOffset = Vector2(outlineWidth * 2.0f, outlineWidth * 2.0f); // The outline should be fit into the bounding box
+    Layout::Parameters layoutParameters( size - sizeOffset,
                                          textBuffer,
                                          lineBreakInfo.Begin(),
                                          wordBreakInfo.Begin(),