diff --git a/widgets/DapButtonForm.ui.qml b/widgets/DapButtonForm.ui.qml
index e1f3b629d9b3d85e8068fc312bfa87b8d9671d41..e4917d1f66815d2a75087bf816e3486309a69ee2 100644
--- a/widgets/DapButtonForm.ui.qml
+++ b/widgets/DapButtonForm.ui.qml
@@ -41,6 +41,8 @@ Button
     property string borderColorButton
     ///@detalis borderWidthButton Sets the width of the border.
     property int borderWidthButton
+    ///@detalis dapHorizontalAlignment Horizontal text alignment.
+    property alias dapHorizontalAlignment: buttonText.horizontalAlignment
 
     id: dapButton
 
diff --git a/widgets/DapText.qml b/widgets/DapText.qml
index 3718df584dd48088c6a29b4ed8cb95ccf40c89a5..1ab6504569e675df4e66dfcd8c9fca5b5ef9f595 100644
--- a/widgets/DapText.qml
+++ b/widgets/DapText.qml
@@ -23,8 +23,8 @@ DapTextForm
                 case Text.ElideRight:
                     elText = textMetric.elidedText.substring(0, textMetric.elidedText.length - 1) +
                                 ((fontMetric.tightBoundingRect(textMetric.elidedText.substring(0, textMetric.elidedText.length - 1)).width +
-                                  fontMetric.tightBoundingRect(textMetric.text.charAt(textMetric.elidedText.length - 1) + '..').width) < textMetric.elideWidth ?
-                                     (textMetric.text.charAt(textMetric.elidedText.length - 1) + '..'):
+                                  fontMetric.tightBoundingRect(textMetric.text.charAt(textMetric.elidedText.length - 1) + '..').width) < elText.elideWidth ?
+                                     (textMetric.text.charAt(textMetric.elidedText.length - 3) + '..'):
                                    '..');
                     break;