{ "id": "112695", "key": "TIMOB-13528", "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": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15400", "description": "2013 Sprint 08 API", "name": "2013 Sprint 08 API", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-11T21:03:59.000+0000", "created": "2013-04-11T12:30:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_navwindow", "navbar", "qe-closed-3.1.0", "qe-testadded", "regression", "triage" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Changing the hierarchy (or doing something that has this as a collateral effect) make the view set as rightNavButton centered in the navBar.\r\n\r\nJust launch the provided code both as 3.0 and 3.1. \"Clicking\" on the button on 3.0 will work correctly, on 3.1 will expose the issue.\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar nav = Ti.UI.createView({\r\n\twidth: Ti.UI.SIZE,\r\n\tlayout: 'horizontal'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\twidth: 40,\r\n\tleft: 2,\r\n\tright: 2,\r\n\timage: 'KS_nav_views.png'\r\n});\r\n\r\nvar toggle = true;\r\n\r\nbtn.addEventListener('click', function () {\r\n\ttoggle = !toggle;\r\n\tbtn.image = toggle ? 'KS_nav_views.png' : 'KS_nav_ui.png';\r\n});\r\n\r\nnav.add(btn);\r\n\r\nvar window = Ti.UI.createWindow({\r\n\ttitle: 'Example',\r\n\trightNavButton: nav,\r\n\tnavBarHidden: false,\r\n\tbackgroundColor: 'white',\r\n\tmodal: true\r\n});\r\n\r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Regression in behaviour with custom views on {right,left} NavButton for iOS", "creator": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS 6.1, Titanium SDK 3.1 RC", "comment": { "comments": [ { "id": "247057", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "There's actually a \"work around\", which is to change the view's {{width}} from {{Ti.UI.SIZE}} to {{\"auto\"}}.", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-11T13:01:10.000+0000", "updated": "2013-04-11T13:01:10.000+0000" }, { "id": "247115", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed regression on iOS 6 simulator between Ti SDK 3.0.2 GA and latest 3.1 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T18:05:16.000+0000", "updated": "2013-04-11T18:05:16.000+0000" }, { "id": "247155", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4146", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T20:40:18.000+0000", "updated": "2013-04-11T20:40:18.000+0000" }, { "id": "247156", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X \nhttps://github.com/appcelerator/titanium_mobile/pull/4147", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-11T20:47:41.000+0000", "updated": "2013-04-11T20:47:41.000+0000" }, { "id": "247216", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified fix with:\nTitanium Studio, build: 3.1.0.201304101819\nSDK build: 3.1.0.v20130411153922\nDevice: iPhone5 iOS 6.1.3\niOS 6.1 Simulator\n\nThe rightNavButton is NOT centered in the navBar.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T00:00:08.000+0000", "updated": "2013-04-12T00:00:08.000+0000" }, { "id": "247251", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "Guys, you are on fire! Thank you!", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-12T08:22:53.000+0000", "updated": "2013-04-12T08:22:53.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }