Interference with TableView.moving property?
Using Titanium Alloy with SDK 3.5.0.
I integrated this module into my application and suddenly I can't drag and reorder TableView rows in iOS. When I set moving=true, the drag-to-reorder icons appear and I'm able to start dragging a row but after a moving a few pixels it returns to its original position.
I originally had three separate TableViews nested within a ScrollView. I removed the ScrollView and combined the three TableViews into one. Didn't have any luck.
Also, on this screen I have removed the leftView so there is only a center view (no rightView either).
I haven't seen any reports of a similar issue here or on Appcelerator's JIRA, so I'm wondering if there may be anything within this module that can interfere with the reordering of rows.
Tomorrow I'll put together a barebones application and see if I can recreate this. I'll update this thread with the results.
_Here is a modified views/index.xml from the example code_
<Alloy>
<Window id="leftWindow">
<TableView id="leftTable">
<TableViewRow>
<Label text="hello left window"></Label>
</TableViewRow>
</TableView>
</Window>
<NavigationWindow id="navgroup">
<Window id="win">
<LeftNavButton>
<Button title="Left" onClick="openLeft"></Button>
</LeftNavButton>
<RightNavButton>
<Button title="Right" onClick="openRight"></Button>
</RightNavButton>
<TableView moving="true">
<TableViewRow height="60sp" title="Test 0"/>
<TableViewRow height="60sp" title="Test 1"/>
<TableViewRow height="60sp" title="Test 2"/>
<TableViewRow height="60sp" title="Test 3"/>
<TableViewRow height="60sp" title="Test 4"/>
<TableViewRow height="60sp" title="Test 5"/>
<TableViewRow height="60sp" title="Test 6"/>
<TableViewRow height="60sp" title="Test 7"/>
<TableViewRow height="60sp" title="Test 8"/>
<TableViewRow height="60sp" title="Test 9"/>
</TableView>
</Window>
</NavigationWindow>
<Window id="rightWindow">
<TableView id="rightTable">
<TableViewRow>
<Label text="hello right window"></Label>
</TableViewRow>
</TableView>
</Window>
</Alloy>
This simply makes a few moveable TableViewRows. I can't re-order them.
I found one way to work around this...
When you need to use the TableView.moving property set
slideMenu.setPanningMode("NoPanning");
Then once you've finished and disable moving, return to the original panningMode
slideMenu.setPanningMode("FullViewPanning");
or which ever method you use by default.