【问题标题】:Appcelerator Titanium - auto height table views break with shortish textAppcelerator Titanium - 自动高度表视图因短文本而中断
【发布时间】:2010-03-29 19:50:36
【问题描述】:

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

【问题讨论】:

    标签: iphone uitableview titanium appcelerator


    【解决方案1】:

    试试 textAlign: "left";在您的行声明中。这至少应确保文本与行的左侧对齐。如果这不能解决问题,请为该行分配一个宽度属性。那应该解决它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-13
      • 1970-01-01
      • 2016-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多