TextInput: Fix text width

Thanks PulkoMandy for teaching me how to use Debugger and part of the interface kit..
Fixes #12608

Signed-off-by: Adrien Destugues <[email protected]>

Thanks for investigating and finding the problem!
This commit is contained in:
hyche
2017-11-23 11:06:25 +01:00
committed by Adrien Destugues
parent a61d30b83b
commit 11dee0444f
+1 -1
View File
@@ -174,7 +174,7 @@ _BTextInput_::AlignTextRect()
float vInset = max_c(1,
floorf((textRect.Height() - LineHeight(0)) / 2.0));
float hInset = 2;
float textFontWidth = TextRect().right;
float textFontWidth = TextRect().Width();
switch (Alignment()) {
case B_ALIGN_LEFT: