{ "id": "153091", "key": "TIMOB-19982", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "2015-11-14T07:37:38.000+0000", "created": "2015-11-13T22:40:58.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-5.1.0", "regression" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-17T18:12:06.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": [], "description": "h5. Description:\r\nThis is a *regression* between 5.0.2.GA - 5.1.0. The left button within a text field is no longer centered, but still responsive. The right button does not become visible upon focus of the text field.\r\n\r\nh5. Steps to reproduce:\r\n\r\n1. {{appc ti sdk select 5.0.2.GA}}\r\n2. Create a classic project.\r\n3. Use following example code in app.js: \r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundcolor: 'red'\r\n });\r\n \r\n var leftButton = Titanium.UI.createButton({\r\n style:Titanium.UI.iPhone.SystemButton.DISCLOSURE\r\n });\r\n var rightButton = Titanium.UI.createButton({\r\n style:Titanium.UI.iPhone.SystemButton.INFO_DARK\r\n });\r\n \r\n leftButton.addEventListener('click',function()\r\n {\r\n Titanium.UI.createAlertDialog({\r\n title:'Text Fields',\r\n message:'You clicked the left button'\r\n }).show();\r\n });\r\n \r\n rightButton.addEventListener('click',function()\r\n {\r\n Titanium.UI.createAlertDialog({\r\n title:'Text Fields',\r\n message:'You clicked the right button'\r\n }).show();\r\n });\r\n \r\n \r\n var tf1 = Titanium.UI.createTextField({\r\n color:'#336699',\r\n height:35,\r\n top:100,\r\n left:10,\r\n width:250,\r\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n leftButton:leftButton,\r\n rightButton:rightButton,\r\n leftButtonMode:Titanium.UI.INPUT_BUTTONMODE_ALWAYS,\r\n rightButtonMode:Titanium.UI.INPUT_BUTTONMODE_ONFOCUS\r\n });\r\n \r\nwin.add(tf1);\r\nwin.open();\r\n{code}\r\n\r\n4. No issue with buttons in a text field.\r\n5. {{appc ti sdk select}} 5.1.X SDK.\r\n6. run the same example code.\r\n7. Issue with buttons in a text field occurs.\r\n \r\nh5. Result:\r\nButtons in a text field issue should occur with 5.1.X SDK builds.\r\nh5. Expected Result:\r\nLeft button should be centered and right button should become visible upon text field focus.", "attachment": [ { "id": "57448", "filename": "Screen Shot 2015-11-13 at 2.10.10 PM.png", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-11-13T22:43:07.000+0000", "size": 4441, "mimeType": "image/png" }, { "id": "57447", "filename": "Screen Shot 2015-11-13 at 2.13.56 PM.png", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-11-13T22:42:32.000+0000", "size": 3893, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Buttons in a text field: Left button not centered & right button does not show on focus", "creator": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "environment": "Mac OSX El Capitan 10.11 (15A284)\r\nTi SDK: 5.1.0.v20151113005238\r\nAppc Studio: 4.4.0.201511130407\r\nAppc NPM: 4.2.1\r\nAppc CLI: 5.1.0-53\r\nTi CLI: 5.0.4\r\nAlloy: 1.7.25\r\nXcode 7.1(7B91b)\r\nNode v0.12.7\r\nproduction", "comment": { "comments": [ { "id": "370257", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Regression Issue", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-11-13T22:42:44.000+0000", "updated": "2015-11-13T22:42:44.000+0000" }, { "id": "370276", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Marking as {{Invalid}} since it is a KitchenSink issue. As soon as we set a width and height as stated in the docs, everything works well.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-14T07:37:38.000+0000", "updated": "2015-11-14T07:37:38.000+0000" }, { "id": "413533", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:12:06.000+0000", "updated": "2017-03-17T18:12:06.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }