Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

输入文本框的内容和光标之间对齐有问题。 #459

Open
HiWenHao opened this issue Mar 11, 2021 · 2 comments
Open

输入文本框的内容和光标之间对齐有问题。 #459

HiWenHao opened this issue Mar 11, 2021 · 2 comments

Comments

@HiWenHao
Copy link

在文本输入框中,若想使用文本居中对齐或者右对齐的时候,文本内容会和光标之间有偏移。

复现问题:
1、创建一个文本输入框;
2、更改属性textAlign为非left;
3、输入字符内容;(这时候光标不会处于文本最后方)
4、长按输入文本框、全选。(这时候会发现显示的文本内容,和选中阴影不一致,严重偏移)

希望大佬们尽快解决该问题,拜谢。!

@kuro7766
Copy link

手机上textarea不能选择光标位置,楼主遇到过这个问题吗

@HiWenHao
Copy link
Author

手机上textarea不能选择光标位置,楼主遇到过这个问题吗

暂时我还没有遇到这样的问题;
我的问题还是偏移问题,弄不明白了。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants