Revert "[Tizen] Do not substarct outline width in text-controller"
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 10 Sep 2018 02:43:24 +0000 (11:43 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 10 Sep 2018 02:43:28 +0000 (11:43 +0900)
This reverts commit 601f706aca93d4221f7d2208810dd3073ebf4a6d.

Change-Id: I4297a34bfc20103741c6516c7d70de9164136e8b

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

index 033433b..227760f 100755 (executable)
@@ -3529,7 +3529,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(),