Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9716] Android: Ti.UI.SIZE for TableView in ScrollView doesn't work as expected

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-20T16:23:50.000+0000
Affected Version/sRelease 2.0.2, Release 2.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsapi, exalture
ReporterNikhil Sharma
AssigneeSunila
Created2012-06-21T17:00:55.000+0000
Updated2017-03-21T21:29:19.000+0000

Description

Ti.UI.SIZE for TableView in ScrollView doesn't work. If you give height an explicit value it shows all the rows but using Ti.UI.SIZE produces a table view that is only 1.5 rows high. If you don't put the table view into a scroll view, then these two configurations produce the exact same table view.

Explicit value for the height property: The pastie link of the sample code

http://pastie.org/4112802

Ti.UI.SIZE for the height property: The pastie link of the sample code

http://pastie.org/4112830

Repo Steps

1. Run the above code samples in your app.js 2. The tableview with explicit height value appears as expected but the table view with TI.UI.SIZE appears only 1.5 rows high.

Comments

  1. Sunila 2013-03-20

    Tested with 3.1.0 on Nexus S. I can see all the rows with Ti.UI.SIZE
  2. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced.

JSON Source