[Tizen] Do not substarct outline width in text-controller 88/178488/1 accepted/tizen/unified/20180514.094036 submit/tizen/20180510.080855
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 10 May 2018 06:53:16 +0000 (15:53 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 10 May 2018 06:53:19 +0000 (15:53 +0900)
Change-Id: I1c787d975962056d4b07b596955c033cae66a0d7

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

index 7192281..a2f0db2 100755 (executable)
@@ -3512,8 +3512,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(),