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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user