Fix aligning when text growing more than the right bound..

because the bound scrolls to the current cursor to view the text (ScrollToOffset).
Follow up #12608

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
hyche
2017-11-23 20:10:11 +01:00
committed by Augustin Cavalier
parent 14d690378f
commit 1641a0516d
+2 -2
View File
@@ -182,12 +182,12 @@ _BTextInput_::AlignTextRect()
break;
case B_ALIGN_RIGHT:
hInset = textRect.right - textFontWidth;
hInset = textRect.Width() - textFontWidth;
hInset -= be_control_look->DefaultLabelSpacing();
break;
case B_ALIGN_CENTER:
hInset = (textRect.right - textFontWidth) / 2.0;
hInset = (textRect.Width() - textFontWidth) / 2.0;
break;
default: