Revert "[Tizen] Do not substarct outline width in text-controller" 82/178482/1
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 10 May 2018 06:50:56 +0000 (15:50 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 10 May 2018 06:51:02 +0000 (15:51 +0900)
This reverts commit b1d3ff114b2bf5c82a811e5be1dbff8770a1afce.

Change-Id: I505fdf05999c4d46e6bc8fd560eab24678510fbe

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

index 3e9cf1f..f47b526 100755 (executable)
@@ -3511,7 +3511,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(),