1

place holder

I have a Text Item added to a dynamic form in smart GWT mobile (as shown in the image). On the right there is the place holder, when I start typing it starts from far end. I want it to start typing from the left that is after title.

4

1 回答 1

0

尝试将文本对齐方式设置为 LEFT。
在非移动版本中,可以使用更改文本对齐方式textItem.setTextAlign(Alignment.LEFT);

此外,看看是否可以通过使用可用的 API 方法更改长度、提示的显示方式、标题的显示方式等来完成任何事情。

我没有使用 SmartGWT mobile,所以这可能无法解决问题。

我的感觉是,移动输入字段旨在优化移动设备上的屏幕空间,将标题和输入推向屏幕的左侧和右侧,将任何剩余的空间放在中间。

在浏览器或其他模拟器中进行测试时,标签和输入之间的空间看起来很大,但在移动设备中使用时,它可能看起来还不错。

于 2013-03-26T23:00:22.533 回答