[AC-5290] Android - TableView & ListView height can't be Ti.UI.SIZE, always Ti.UI.FILL instead.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-02T20:32:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, regression |
Reporter | Clément Blanco |
Assignee | Shak Hossain |
Created | 2017-10-17T16:50:59.000+0000 |
Updated | 2017-11-02T20:32:29.000+0000 |
Description
Experiencing this under Ti SDK
6.2.2.GA
and Ti SDK 6.2.1.GA
.
Might be 6.2.0.GA+
related.
The following samples will not set the height of the top parent element (<TableView>
or <ListView>
) to a Ti.UI.SIZE
behaviour and instead it will use the Ti.UI.FILL
one for Android.
<Alloy>
<Window>
<ListView height="Ti.UI.SIZE">
<ListSection headerTitle="Fruit" height="Ti.UI.SIZE">
<ListItem title="Apple" height="Ti.UI.SIZE" />
<ListItem title="Bananas" height="Ti.UI.SIZE" />
</ListSection>
<ListSection headerTitle="Vegetables" height="Ti.UI.SIZE">
<ListItem title="Carrots" height="Ti.UI.SIZE" />
<ListItem title="Potatoes" height="Ti.UI.SIZE" />
</ListSection>
<ListSection headerTitle="Fish" height="Ti.UI.SIZE">
<ListItem title="Cod" height="Ti.UI.SIZE" />
<ListItem title="Haddock" height="Ti.UI.SIZE" />
</ListSection>
</ListView>
</Window>
</Alloy>
<Alloy>
<Window>
<TableView height="Ti.UI.SIZE">
<TableViewSection headerTitle="Fruit" height="Ti.UI.SIZE">
<TableViewRow title="Apple" height="Ti.UI.SIZE" />
<TableViewRow title="Bananas" height="Ti.UI.SIZE" />
</TableViewSection>
<TableViewSection headerTitle="Vegetables" height="Ti.UI.SIZE">
<TableViewRow title="Carrots" height="Ti.UI.SIZE" />
<TableViewRow title="Potatoes" height="Ti.UI.SIZE" />
</TableViewSection>
<TableViewSection headerTitle="Fish" height="Ti.UI.SIZE">
<TableViewRow title="Cod" height="Ti.UI.SIZE" />
<TableViewRow title="Haddock" height="Ti.UI.SIZE" />
</TableViewSection>
</TableView>
</Window>
</Alloy>
Which SDK version do you use? Can you please try with 6.3.0 RC?
Ti SDK
6.2.0.GA+
I suspect. Trying to compile with6.3.0.v20171017063048
and I get:[~clement] That was just fixed 5min ago :-), a new build will be online in a few minutes (try in ~ 20min).
Ok
6.3.0.RC
fixes this.