开发者

Appcelerator Titanium - auto height table views break with shortish text

开发者 https://www.devze.com 2022-12-25 04:38 出处:网络
I posted this on the Appcelerator Titanium dev Q&A site, but maybe someone here 开发者_如何学编程has had this issue...

I posted this on the Appcelerator Titanium dev Q&A site, but maybe someone here 开发者_如何学编程has had this issue...

KitchenSink 1.1 illustrates this issue. In table_view_api_auto_height.js, changing row:

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.');

to something like:

addRow(0,'This is some long text. This is some long text.');

results in incorrect left padding on the row. See screenshot:

screenshot http://img28.imageshack.us/img28/7987/screenshot20100329at244.png


try textAlign: "left"; on your row declaration. This should at a minimum, ensure the text is aligned to the left of the row. If this does not solve the issue assign a width property to the row. That should fix it.

0

精彩评论

暂无评论...
验证码 换一张
取 消