[Tizen] Fix alignment issues in backgroundActor. 58/266158/1 accepted/tizen/6.0/unified/20211109.075205 submit/tizen_6.0/20211109.015223
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 8 Nov 2021 10:31:36 +0000 (19:31 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Mon, 8 Nov 2021 10:31:36 +0000 (19:31 +0900)
Change-Id: I8030da6e91f2d5183503079093593159e8200865

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

index 70726ab..8e38f70 100644 (file)
@@ -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();