Fix alignment issues in backgroundActor. 59/266159/1
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 8 Nov 2021 10:35:45 +0000 (19:35 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Mon, 8 Nov 2021 10:35:45 +0000 (19:35 +0900)
Change-Id: I7fd58d1437a1118ab60568567e3613adcf0ab0c4

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

index 4b05496..2edca46 100644 (file)
@@ -1586,7 +1586,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();