projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
466f798
)
Revert "[Tizen] Do not substarct outline width in text-controller"
author
Joogab Yun
<joogab.yun@samsung.com>
Mon, 9 Jul 2018 05:07:37 +0000
(14:07 +0900)
committer
Joogab Yun
<joogab.yun@samsung.com>
Mon, 9 Jul 2018 05:07:37 +0000
(14:07 +0900)
This reverts commit
1cc6069b9fbd8a7af2463b5e89fd144cbb41cc49
.
dali-toolkit/internal/text/text-controller.cpp
patch
|
blob
|
history
diff --git
a/dali-toolkit/internal/text/text-controller.cpp
b/dali-toolkit/internal/text/text-controller.cpp
index
a2f0db2
..
7192281
100755
(executable)
--- a/
dali-toolkit/internal/text/text-controller.cpp
+++ b/
dali-toolkit/internal/text/text-controller.cpp
@@
-3512,7
+3512,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(),