Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-826

Required ListSections always come first

    Details

      Description

      In Alloy, required sections in a ListView always come before any inline ones, not adhering to the actual order.

      Steps to reproduce

      1. Create a new app: titanium create -p ios -n testSessions -d . --id test.Sessions
      2. Make it an alloy app: cd testSessions && alloy new
      3. 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>
            

      4. Create a second view called section.xml with:

            <Alloy>
                <ListSection>
                    <ListItem title="Required" />
                </ListSection>
            </Alloy>
            

      5. Compile and build the app to a device: titanium build -p ios -T device
      6. Run the app and see Required comes before One, Two, Three, as shown in attached screenshot.
      7. Open the compiled Resources/alloy/controllers/index.js to see that indeed the code for the required section comes before the inline ones.

        Attachments

          Activity

            People

            • Assignee:
              tlukasavage Tony Lukasavage
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code