[Tizen] Do not substarct outline width in text-controller
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 27 Aug 2018 04:11:51 +0000 (13:11 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Mon, 27 Aug 2018 04:11:53 +0000 (13:11 +0900)
This reverts commit 5f452207139374c69f8fa4a741ef04da163de04e.

Change-Id: Ie90db030b85a58680db0d14890e53b44da125a1b

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

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