{ "id": "144741", "key": "TIMOB-18575", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-02-14T14:47:56.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "rightNavButtons" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:41.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "The order in which you push buttons to an array for {{rightNavButtons}} do not correspondent (in a logical way) with the order in which they are rendered.\r\n\r\nh1. To reproduce\r\n\r\nTake this Alloy example (it is not an Alloy bug, it's just more clear):\r\n\r\n{code:xml}\r\n\r\n \r\n \t\r\n \t\t\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \t\r\n \r\n\r\n{code}\r\n\r\nWhich compiles to:\r\n\r\n{code:js}\r\n $.__views.__alloyId0 = Ti.UI.createWindow({\r\n title: \"Title\",\r\n id: \"__alloyId0\"\r\n });\r\n var leftNavButtons = [];\r\n $.__views.__alloyId2 = Ti.UI.createButton({\r\n title: \"A\",\r\n id: \"__alloyId2\"\r\n });\r\n leftNavButtons.push($.__views.__alloyId2);\r\n $.__views.__alloyId3 = Ti.UI.createButton({\r\n title: \"B\",\r\n id: \"__alloyId3\"\r\n });\r\n leftNavButtons.push($.__views.__alloyId3);\r\n $.__views.__alloyId0.leftNavButtons = leftNavButtons;\r\n var rightNavButtons = [];\r\n $.__views.__alloyId5 = Ti.UI.createButton({\r\n title: \"C\",\r\n id: \"__alloyId5\"\r\n });\r\n rightNavButtons.push($.__views.__alloyId5);\r\n $.__views.__alloyId6 = Ti.UI.createButton({\r\n title: \"D\",\r\n id: \"__alloyId6\"\r\n });\r\n rightNavButtons.push($.__views.__alloyId6);\r\n $.__views.__alloyId0.rightNavButtons = rightNavButtons;\r\n{code}\r\n\r\nYou'd expect the window to have A+B on the left and then C+D on the right, but instead you see A+B on the left and D+C on the right.\r\n\r\nSee screenshot.", "attachment": [ { "id": "54142", "filename": "iOS Simulator Screen Shot 14 Feb 2015 15.46.30.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-02-14T14:47:56.000+0000", "size": 17071, "mimeType": "image/png" } ], "flagged": false, "summary": "RightNavButtons should be rendered from left to right", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.5.0.GA", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }