Revert "[Tizen] Do not substarct outline width in text-controller"
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 23 Jul 2018 05:35:05 +0000 (14:35 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 23 Jul 2018 05:35:05 +0000 (14:35 +0900)
This reverts commit a437c4f9b142c4ca00e9dd378e2968c9cb583782.

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

index bdb347f..4ce4b5a 100755 (executable)
@@ -3519,7 +3519,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(),