Merge "Adding theme for Raspberry Pi" into devel/master
authorDavid Steele <david.steele@samsung.com>
Tue, 9 Nov 2021 10:30:45 +0000 (10:30 +0000)
committerGerrit Code Review <gerrit@review>
Tue, 9 Nov 2021 10:30:45 +0000 (10:30 +0000)
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();