{ "id": "92501", "key": "TIMOB-9302", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-05-30T18:55:27.000+0000", "created": "2012-05-29T15:52:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:10:18.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": "h3. Steps to Reproduce\r\n\r\n1. Run the app.js below:\r\n\r\n{noformat}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\n\r\nvar tabGroup = Ti.UI.createTabGroup();\r\nvar tab1 = Ti.UI.createTab({\r\n title : 'Tab 1',\r\n window : win\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n top : 20,\r\n width : 100,\r\n height : 50,\r\n title : 'Click Me'\r\n});\r\n\r\nwin.add(button);\r\n\r\nbutton.addEventListener('click', function() {\r\n var win1 = Ti.UI.createWindow({\r\n backgroundColor : 'red',\r\n navBarHidden : false,\r\n });\r\n\r\n var back = Ti.UI.createButton({\r\n title : 'Back',\r\n style: Titanium.UI.iPhone.SystemButtonStyle.DONE\r\n });\r\n win1.setLeftNavButton(back);\r\n back.addEventListener('click', function() {\r\n win1.close();\r\n });\r\n\r\n win1.open({\r\n modal : true\r\n });\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n\r\n{noformat}\r\n\r\n2. Click on the \"Click Me\" button.\r\n\r\n3. Now click on the back button (a bit outside the visible boundaries of it i.e to the left, right, bottom)\r\n\r\nh3. Expected Result\r\n\r\nThe window should not close\r\n\r\nh3. Actual Result\r\n\r\nThe window closes. Also happens on the rightNavbutton too. Confirmed this even with version 1.8.0.1 and 1.8.2 of the SDK.\r\n\r\nh3. Video Link\r\nhttp://youtu.be/vxPAUFfJstk", "attachment": [ { "id": "28047", "filename": "HitTest.zip", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T13:56:38.000+0000", "size": 24861, "mimeType": "application/zip" }, { "id": "28048", "filename": "Screen Shot 2012-05-30 at 1.52.18 PM.png", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T13:56:38.000+0000", "size": 4928, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Can click for some area outside the visible boundaries of the navigation bar button", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK: 1.8.2, 2.0.1.GA2, 1.8.0.1\r\n", "comment": { "comments": [ { "id": "196565", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There is about 16 pixels outside the edges of a button that is still considered valid clickable area in a navigation bar button. This is by design from Apple itself. Included is a screenshot of the area considered 'button clicked' as well as the native project that demonstrates it.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T13:54:51.000+0000", "updated": "2012-05-30T13:54:51.000+0000" }, { "id": "196566", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Clickable area effective and the native test that demonstrates it.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T13:56:38.000+0000", "updated": "2012-05-30T13:56:38.000+0000" }, { "id": "196567", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Will test to see if the same clickable region is happening. If so, closing as invalid. If the clickable region is different from native, will be looking deeper.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T13:57:44.000+0000", "updated": "2012-05-30T13:57:44.000+0000" }, { "id": "196661", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified that this behavior is consistent with native. Left nav button has a larger horizontal margin than right nav button, but in all cases, no Titanium code is called, not even for hit test. In other words, marking this invalid as this is by design by Apple.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T18:54:18.000+0000", "updated": "2012-05-30T18:54:18.000+0000" }, { "id": "196662", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The behavior is by iOS design, not by Titanium, and is intentional to compensate to large fingers.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T18:55:27.000+0000", "updated": "2012-05-30T18:55:27.000+0000" }, { "id": "415631", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:10:18.000+0000", "updated": "2017-03-24T18:10:18.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }