From: joogab.yun Date: Mon, 8 Nov 2021 10:31:36 +0000 (+0900) Subject: [Tizen] Fix alignment issues in backgroundActor. X-Git-Tag: accepted/tizen/6.0/unified/20211109.075205^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8a8602d476be1e0d69700fc4a4b0de389734835;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git [Tizen] Fix alignment issues in backgroundActor. Change-Id: I8030da6e91f2d5183503079093593159e8200865 --- diff --git a/dali-toolkit/internal/text/text-controller-impl.cpp b/dali-toolkit/internal/text/text-controller-impl.cpp index 70726ab..8e38f70 100644 --- a/dali-toolkit/internal/text/text-controller-impl.cpp +++ b/dali-toolkit/internal/text/text-controller-impl.cpp @@ -2728,7 +2728,7 @@ Actor Controller::Impl::CreateBackgroundActor() const Vector2 textSize = mView.GetLayoutSize(); - const float offsetX = textSize.width * 0.5f; + const float offsetX = alignmentOffset + textSize.width * 0.5f; const float offsetY = textSize.height * 0.5f; const Vector4* const backgroundColorsBuffer = mView.GetBackgroundColors();