English 中文(简体)
Appcelerator Titanium - auto height table views break with shortish text
原标题:

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.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签