[AC-1341] "Auto" TableViewRow not working in Android 6
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2015-11-23T07:21:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | height, tableViewRow |
Reporter | Ace McLoud |
Assignee | Shak Hossain |
Created | 2015-11-04T09:54:42.000+0000 |
Updated | 2016-03-08T07:37:45.000+0000 |
Description
Dynamic height of TableViewRow doesn't work in Android 6:
<Alloy>
<Window class="container">
<TableView height="Ti.UI.SIZE" layout="vertical">
<TableViewRow height="Ti.UI.SIZE">
<Label height="Ti.UI.SIZE">
Label1
Label1
Label1
</Label>
</TableViewRow>
<TableViewRow height="Ti.UI.SIZE">
<Label text="Label2" height="Ti.UI.SIZE" />
</TableViewRow>
<TableViewRow height="Ti.UI.SIZE">
<Label text="Label3" height="Ti.UI.SIZE" />
</TableViewRow>
</TableView>
</Window>
</Alloy>
See attached Screenshots for expected Layout as in Android 5 + wrong layout in Android 6. In Android 6 the TableViewRow takes up the entire height of the screen.
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2015-10-30 at 10.44.04.png | 2015-11-04T09:52:59.000+0000 | 79911 |
Screen Shot 2015-11-04 at 10.48.23.png | 2015-11-04T09:53:03.000+0000 | 63641 |
I have the same problem, but I'm pretty sure that same code, same titnium sdk changes behaviour in last two week because I build the same app on the same device and table row changes (buggy version is in the store: https://play.google.com/store/apps/details?id=it.tnx.vtf). I don't know how to check android sdk used during runs but I try to create a dist build forcing an old version and no luck. Could be a CLI problem??? Is the same component I've recently update. I can upload both apk if can help.
further information added on TIMOB-19855