{
"id": "125731",
"key": "TIMOB-16466",
"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": "2014-02-01T10:44:04.000+0000",
"priority": {
"name": "Low",
"id": "4"
},
"labels": [
"iPhone"
],
"versions": [
{
"id": "15856",
"description": "Release 3.2.1",
"name": "Release 3.2.1",
"archived": false,
"released": true,
"releaseDate": "2014-02-10"
}
],
"issuelinks": [],
"assignee": null,
"updated": "2018-02-28T20:04:19.000+0000",
"status": {
"description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.",
"name": "Reopened",
"id": "4",
"statusCategory": {
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
},
"components": [
{
"id": "10206",
"name": "iOS",
"description": "iOS Platform"
}
],
"description": "The following code is not working. Only textfield is visible. Right button is not shown.\r\n\r\nView:\r\n\r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nTSS:\r\n{code}\r\n\"#measurementTxt[platform=ios]\":{\r\n\trightButtonMode: Ti.UI.INPUT_BUTTONMODE_ALWAYS\r\n},\r\n\"#measurementBtn[platform=ios]\":{\r\n\tbackgroundImage:'images/add_row.png',\r\n\tsystemButton: Ti.UI.iPhone.SystemButton.DONE\r\n}\r\n{code}\r\n\r\n\r\nTitanium Test Case\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar done = Titanium.UI.createButton({\r\n title : 'Done',\r\n style : Titanium.UI.iPhone.SystemButtonStyle.DONE,\r\n width: 60,\r\n height: 60\r\n});\r\n \r\nvar textField = Ti.UI.createTextField({\r\n color: '#336699',\r\n top: 50, left: 10,\r\n width: 250, height: 60,\r\n paddingLeft: 8.5, paddingRight: 8.5, // Comment out this line to see the button in the text field\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_LINE,\r\n rightButtonMode: Ti.UI.INPUT_BUTTONMODE_ALWAYS,\r\n borderWidth: 1, \r\n rightButton: done\r\n});\r\n \r\nwin.add(textField);\r\nwin.open();\r\n{code}\r\n",
"attachment": [
{
"id": "45747",
"filename": "add_row.png",
"author": {
"name": "mrahman",
"key": "mrahman",
"displayName": "Mostafizur Rahman",
"active": true,
"timeZone": "Asia/Dhaka"
},
"created": "2014-02-09T16:17:51.000+0000",
"size": 9614,
"mimeType": "image/png"
},
{
"id": "45746",
"filename": "iOS Simulator Screen shot Feb 9, 2014 5.45.39 PM.png",
"author": {
"name": "mrahman",
"key": "mrahman",
"displayName": "Mostafizur Rahman",
"active": true,
"timeZone": "Asia/Dhaka"
},
"created": "2014-02-09T16:17:51.000+0000",
"size": 9594,
"mimeType": "image/png"
}
],
"flagged": false,
"summary": "iOS: rightButton does not appear in TextField if padding is used",
"creator": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"subtasks": [],
"reporter": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"environment": "Mac OSX 10.8.5\r\nTitanium 3.2.0\r\nXcode 5.0.3\r\niPhone Simulator 7.0.3\r\n",
"comment": {
"comments": [
{
"id": "292120",
"author": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "You need to set width and height properties of the button for the text field in order to display the button. It is documented here: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.TextField-property-rightButton\n\nrightButton : Object\nSet the width and height properties of the button or else it does not display in the text field.\nUsing an object other than a Button may have unpredictable results.",
"updateAuthor": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2014-02-10T06:26:55.000+0000",
"updated": "2014-02-10T06:26:55.000+0000"
},
{
"id": "292894",
"author": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"body": "I checked it myself just now with following code. It is not at all working for me. Could you please post your sample project here that I can download and check. Because I'm sure the below one is not working on my end.\n\nI'm on\nTi 3.2.0 with Alloy 1.3.0 only.\n\nView\n{code}\n\n \n \n \n\n{code}\n\nTSS\n{code}\n\"#measurementTxt[platform=ios]\":{\n rightButtonMode: Ti.UI.INPUT_BUTTONMODE_ALWAYS\n},\n\"#measurementBtn[platform=ios]\":{\n image: \"./images/add_row.png\",\n width: \"40dp\",\n height: \"40dp\"\n}\n{code}\n",
"updateAuthor": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"created": "2014-02-13T11:52:40.000+0000",
"updated": "2014-02-13T11:52:40.000+0000"
},
{
"id": "293120",
"author": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"body": "Hi, Thanks for sharing your sample code. It is working.\n\n*But it is not woking when I have paddingLeft & paddingRight properties set in my tss file.*\n\nI think this is a bug or if it is not supported by iOS itself it has to be documented.\n\nTSS\n{code}\n\".container\": {\n\tbackgroundColor:\"#fff\"\n},\n\"Label\": {\n\twidth: Ti.UI.SIZE,\n\theight: Ti.UI.SIZE,\n\tcolor: \"#000\"\n},\n\"#measurementTxt[platform=ios]\":{\n\ttop: \"10dp\",\n\tpaddingLeft: \"8.5dp\",\n\tpaddingRight: \"8.5dp\",\n\tfont: {\n\t\tfontSize: \"25dp\"\n\t},\n\ttextAlign: \"left\",\n\tcolor: \"#7badd2\",\n\tborderStyle: Ti.UI.INPUT_BORDERSTYLE_LINE,\n\tautocorrect: false,\n\tborderColor: \"#7badd2\",\n rightButtonMode: Ti.UI.INPUT_BUTTONMODE_ALWAYS,\n borderWidth: 1,\n width:Ti.UI.FILL,\n height: 50\n},\n\"#measurementBtn[platform=ios]\":{\n backgroundImage:'/images/add_row.png',\n systemButton: Ti.UI.iPhone.SystemButton.DONE,\n width:50,\n height: 50,\n}\n{code}",
"updateAuthor": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"created": "2014-02-14T04:57:17.000+0000",
"updated": "2014-02-14T04:57:17.000+0000"
},
{
"id": "293344",
"author": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"body": "Any update on this?",
"updateAuthor": {
"name": "mano_mykingdom",
"key": "mano_mykingdom",
"displayName": "Manojkumar Murugesan",
"active": true,
"timeZone": "Asia/Kolkata"
},
"created": "2014-02-15T18:35:55.000+0000",
"updated": "2014-02-15T18:35:55.000+0000"
},
{
"id": "293388",
"author": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "I can reproduce this issue with a Titanium test case so I am moving this ticket to engineering for further evaluation.\n\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor: 'white'\n});\n\nvar done = Titanium.UI.createButton({\n title : 'Done',\n style : Titanium.UI.iPhone.SystemButtonStyle.DONE,\n width: 60,\n height: 60\n});\n\nvar textField = Ti.UI.createTextField({\n color: '#336699',\n top: 50, left: 10,\n width: 250, height: 60,\n paddingLeft: 8.5, paddingRight: 8.5, // Comment out this line to see the button in the text field\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_LINE,\n rightButtonMode: Ti.UI.INPUT_BUTTONMODE_ALWAYS,\n borderWidth: 1, \n rightButton: done\n});\n\nwin.add(textField);\nwin.open();\n{code}\n\nYou can comment out the line with padding to make the button appear / disappear.",
"updateAuthor": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2014-02-17T06:38:46.000+0000",
"updated": "2014-02-17T06:38:46.000+0000"
}
],
"maxResults": 10,
"total": 10,
"startAt": 0
}
}
}