[ALOY-826] Required ListSections always come first
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-22T19:06:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.4.0 |
Components | Titanium SDK |
Labels | alloy, listsection, listview, qe-testadded, require, widgets |
Reporter | Fokke Zandbergen |
Assignee | Tony Lukasavage |
Created | 2013-08-05T18:47:51.000+0000 |
Updated | 2014-05-10T00:29:06.000+0000 |
Description
In Alloy, required sections in a ListView always come before any inline ones, not adhering to the actual order.Steps to reproduce
Create a new app: titanium create -p ios -n testSessions -d . --id test.Sessions
Make it an alloy app: cd testSessions && alloy new
For the index.xml
use:
<Alloy>
<Window>
<ListView>
<ListSection>
<ListItem title="One" />
<ListItem title="Two" />
<ListItem title="Three" />
</ListSection>
<Require src="section" />
</ListView>
</Window>
</Alloy>
Create a second view called section.xml
with:
<Alloy>
<ListSection>
<ListItem title="Required" />
</ListSection>
</Alloy>
Compile and build the app to a device: titanium build -p ios -T device
Run the app and see *Required* comes before *One, Two, Three*, as shown in attached screenshot.
Open the compiled Resources/alloy/controllers/index.js
to see that indeed the code for the required section comes before the inline ones.
Attachments
File | Date | Size |
---|---|---|
foto.PNG | 2013-09-10T19:26:27.000+0000 | 23181 |