我posted this on the Appcelerator Titanium dev Q&A site,但也许这里有人有这个问题......
KitchenSink 1.1说明了这个问题。在table_view_api_auto_height.js
中,更改行:
addRow(0,'This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text. This is some long text.');
类似于:
addRow(0,'This is some long text. This is some long text.');
导致行上的左侧填充不正确。见截图:
screenshot http://img28.imageshack.us/img28/7987/screenshot20100329at244.png
答案 0 :(得分:0)
尝试textAlign:“left”;在你的行声明。这应该至少确保文本与行的左侧对齐。如果这不能解决问题,请为行指定width属性。那应该解决它。