From 759751c3a195564a4d78020b9984b173e1195ff4 Mon Sep 17 00:00:00 2001 From: Sunghyun kim Date: Mon, 3 Sep 2018 11:33:47 +0900 Subject: [PATCH] Revert "[Tizen] Do not substarct outline width in text-controller" This reverts commit 0108ad5529bc99bd09b1e2820a8811f86ad84e16. Change-Id: Iaff080f6c38d5dbbd542efed68228a987067726a --- dali-toolkit/internal/text/text-controller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index bdb347f..4ce4b5a 100755 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -3519,7 +3519,8 @@ bool Controller::DoRelayout( const Size& size, const float outlineWidth = static_cast( 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(), -- 2.7.4