{ "id": "62479", "key": "TIMOB-1847", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-10-31T18:01:33.000+0000", "created": "2011-04-15T03:03:49.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-10-31T18:01:34.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Code below shows this. Happens on iPhone and iPad:

\r\n

var win = Ti.UI.currentWindow;
\r\nvar input1 = Ti.UI.createTextField({

\r\n
\r\nhintText:'e.g. 30000  ',\r\nheight:35,\r\nwidth:120,\r\nborderColor:'#000',\r\n
\r\n

// COMMENT OUT THIS LINE AND THE CLEAR BUTTON WILL SHOW

\r\n
\r\npaddingRight:5,\r\n
\r\n

//END

\r\n
\r\ntextAlign: 'right',\r\nfont:{fontSize:15},\r\ncolor:'#000',\r\nreturnKeyType:Titanium.UI.RETURNKEY_DONE,\r\nclearButtonMode:Titanium.UI.INPUT_BUTTONMODE_ONFOCUS,\r\nkeyboardType:Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION\r\n
\r\n

}); win.add(input1);

{html}", "attachment": [], "flagged": false, "summary": "iOS: Clear button does not show when paddingRight is used in text field", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1169, "state": "closed", "name": "2019 Sprint 22", "startDate": "2019-10-21T15:38:21.747Z", "endDate": "2019-11-03T15:38:00.000Z", "completeDate": "2019-11-04T18:36:57.022Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "208720", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Still valid. Tested on latest master v2.2.0", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-20T13:29:38.000+0000", "updated": "2012-07-20T13:29:38.000+0000" }, { "id": "209630", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Already tested by Vishal and confirmed. Missed 'clear button' setting.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T11:11:26.000+0000", "updated": "2012-07-26T11:11:26.000+0000" }, { "id": "260421", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Issue still valid. Having set of TextField:\r\n{code:javascript}\r\nvar searchBar = Ti.UI.createTextField({\r\n height : 45, top : 0, width : 240, \r\n hintText : prompt, font:{fontSize:14}, \r\n paddingLeft: 12, // padding left works\r\n keyboardType : Ti.UI.KEYBOARD_DEFAULT, autocapitalization:true, autocorrect:false,\r\n returnKeyType : Ti.UI.RETURNKEY_DEFAULT, borderStyle : Ti.UI.INPUT_BORDERSTYLE_NONE,\r\n clearButtonMode: Ti.UI.INPUT_BUTTONMODE_ONFOCUS, \r\n paddingRight: 30, // padding right removes the clearButton\r\n backgroundImage:'/images/fieldTextBox.png',\r\n});\r\n{code}", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2013-07-01T15:28:51.000+0000", "updated": "2013-07-01T15:28:51.000+0000" }, { "id": "452404", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Axway Appcelerator Studio, build: 5.1.4.201909061933 \r\nmacOS : 10.15\r\nNode.js Version : 8.9.1\r\nnpm Version : 5.5.1\r\nAppcelerator CLI : 7.1.1\r\nTitanium CLI\r\nCLI Version : 5.2.1\r\nnode-appc Version : 0.2.49\r\nTitanium SDKs : 8.2.1.GA", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-31T18:01:34.000+0000", "updated": "2019-10-31T18:01:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }