Revert "[Tizen] Do not substarct outline width in text-controller" 30/179430/1
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 18 May 2018 01:05:08 +0000 (10:05 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 18 May 2018 01:05:22 +0000 (10:05 +0900)
This reverts commit f27b769986ddb0a54a50e6ca80f32df6b1f97cd2.

Change-Id: Ie1cf6d0ba953fb709d3ca78fae2dfb576a524875

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(),