{ "id": "126742", "key": "TIMOB-16512", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-06-27T07:12:40.000+0000", "created": "2014-02-22T04:42:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "internalmargin", "padding", "textfield" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "53495", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "164557", "key": "TIMOB-24153", "fields": { "summary": "iOS: Add parity for Ti.UI.TextField.padding", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-11-16T19:21:28.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "sometimes, particularly with smaller screen devices, and/or with short fields (like intended only for 1 or 2 characters), the text can get chopped off unexpectedly on either the top, right or the bottom. This seems to be because the internal 'padding' or margins are NOT scaled according to screen size.", "attachment": [], "flagged": false, "summary": "Android: Expose properties/methods for controlling internal padding in TextField (and possibly TextArea)", "creator": { "name": "bburgess66@netvigator.com", "key": "bburgess66@netvigator.com", "displayName": "Brian Burgess", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "bburgess66@netvigator.com", "key": "bburgess66@netvigator.com", "displayName": "Brian Burgess", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium Studio, build: 3.2.1.201402041146\r\nSDK 3.2.1GA on OSX 10.8.5", "closedSprints": [ { "id": 649, "state": "closed", "name": "2016 Sprint 13 SDK", "startDate": "2016-06-18T00:25:17.303Z", "endDate": "2016-07-02T00:25:00.000Z", "completeDate": "2016-07-04T04:25:16.889Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "294311", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TextField supports multiple padding properties (for example, paddingLeft and paddingRight) for iOS platform. Are you looking for the same properties on Android platform? Please confirm.\n\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.TextField-property-paddingLeft\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T06:08:17.000+0000", "updated": "2014-02-24T06:08:17.000+0000" }, { "id": "294558", "author": { "name": "bburgess66@netvigator.com", "key": "bburgess66@netvigator.com", "displayName": "Brian Burgess", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Yes Ritu,\n\nThis is correct. These Ti.UI.TextField properties have no effect on Android. However they are available in native Android (JAVA). I'm just looking to have them 'exposed' to android in Ti.\n\nMuch Thx\n", "updateAuthor": { "name": "bburgess66@netvigator.com", "key": "bburgess66@netvigator.com", "displayName": "Brian Burgess", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-02-25T05:26:32.000+0000", "updated": "2014-02-25T05:26:32.000+0000" }, { "id": "294746", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this enhancement request to engineering. It would bring Android platform to parity with iOS platform.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-26T05:09:25.000+0000", "updated": "2014-02-26T05:09:25.000+0000" }, { "id": "299604", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Test case :\n{code}\n var win = Ti.UI.createWindow({\n backgroundColor:'white'\n});\nvar txt = Titanium.UI.createTextField({\n value:'this is a textfield',\n height:35,\n width: 300,\n top:60,\n paddingLeft:10, // pad left by 10 pixels\n}); \n \nvar textArea = Ti.UI.createTextArea({\n\ttextAlign : 'right' ,\n\t paddingRight : 10, // pad right by 10 pixels\n\t value: 'this is a textarea',\n\t top: 120,\n\t width: 300, height : 70\n\t});\nvar btn = Ti.UI.createButton({\n\theight:135, width : 250, top : 200,\n title : 'Set Padding'\n});\nwin.add(btn);\nwin.add(textArea);\n\t\nwin.add(txt);\nbtn.addEventListener('click',function(e)\n\t\t{\n\ttextArea.setPaddingRight(50);\n\ttxt.setPaddingLeft(50);\n\t\t});\n \nwin.open();\n\n{code}", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-02T10:51:30.000+0000", "updated": "2014-04-02T10:51:30.000+0000" }, { "id": "299608", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR :-\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5492", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-02T12:22:39.000+0000", "updated": "2014-04-02T12:22:39.000+0000" }, { "id": "303148", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\nvar txt = Titanium.UI.createTextField({\r\n\tvalue:'this is a textfield',\r\n\tpaddingTop:2,\r\n\theight:150,\r\n\twidth: 300,\r\n\ttop:60,\r\n\tpaddingLeft:10, // pad left by 10 pixels\r\n}); \r\n\r\nvar textArea = Ti.UI.createTextArea({\r\n\ttextAlign : 'right' ,\r\n\tpaddingRight : 10, // pad right by 10 pixels\r\n\tvalue: 'this is a textarea',\r\n\ttop: 250,\r\n\twidth: 350, height : 70\r\n});\r\nvar btn = Ti.UI.createButton({\r\n\theight:100, width : 250,\r\n\ttop : 320,\r\n\ttitle : 'Set Padding'\r\n});\r\nwin.add(btn);\r\nwin.add(textArea);\r\n\r\nwin.add(txt);\r\nbtn.addEventListener('click',function(e)\r\n\t\t{\r\n\ttextArea.setPaddingRight(50);\r\n\ttxt.setPaddingLeft(50);\r\n\ttextArea.paddingBottom = 15 ;\r\n\ttxt.paddingTop = 10 ;\r\n\t\t});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-01T05:20:13.000+0000", "updated": "2014-05-01T05:26:52.000+0000" }, { "id": "322497", "author": { "name": "findshorty", "key": "findshorty", "displayName": "ian young", "active": true, "timeZone": "Europe/London" }, "body": "Not sure why this is a low priority issue, or are all Android bugs/features low priority?\r\n\r\nI'd love to develop purely for iOS, but unfortunately there are plenty of titanium developers out here that have no choice but to develop for both (the reason they chose Titanium in the first place). Would be nice if you guys at Appcelerator acknowledged this at some point.", "updateAuthor": { "name": "findshorty", "key": "findshorty", "displayName": "ian young", "active": true, "timeZone": "Europe/London" }, "created": "2014-09-09T09:12:02.000+0000", "updated": "2014-09-09T09:12:02.000+0000" }, { "id": "331372", "author": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please expose those properties to avoid behavior, mentioned in TC-4536.", "updateAuthor": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-10T12:36:00.000+0000", "updated": "2014-11-10T12:36:00.000+0000" }, { "id": "334014", "author": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Found workaround, using styles:\r\n ", "updateAuthor": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-27T10:41:22.000+0000", "updated": "2014-11-27T10:41:22.000+0000" }, { "id": "334015", "author": { "name": "findshorty", "key": "findshorty", "displayName": "ian young", "active": true, "timeZone": "Europe/London" }, "body": "Any workaround for a classic App?", "updateAuthor": { "name": "findshorty", "key": "findshorty", "displayName": "ian young", "active": true, "timeZone": "Europe/London" }, "created": "2014-11-27T10:46:48.000+0000", "updated": "2014-11-27T10:46:48.000+0000" }, { "id": "334016", "author": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, this is for classic app. Solved a lot of crappy problems at once with that. Refer to http://docs.appcelerator.com/titanium/3.0/#!/guide/Android_Themes for details.", "updateAuthor": { "name": "lees_oz", "key": "lees_oz", "displayName": "Lev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-27T10:48:24.000+0000", "updated": "2014-11-27T10:48:24.000+0000" }, { "id": "334017", "author": { "name": "findshorty", "key": "findshorty", "displayName": "ian young", "active": true, "timeZone": "Europe/London" }, "body": "Awesome, thanks!", "updateAuthor": { "name": "findshorty", "key": "findshorty", "displayName": "ian young", "active": true, "timeZone": "Europe/London" }, "created": "2014-11-27T10:50:47.000+0000", "updated": "2014-11-27T10:50:47.000+0000" }, { "id": "381355", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've updated the PR: https://github.com/appcelerator/titanium_mobile/pull/7908\r\n\r\n!http://www.migaweb.de/ti_padding.png!\r\n\r\n{code:javascript}\r\nvar win = $.UI.create(\"Window\", {\r\n layout: \"vertical\",\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar t1 = $.UI.create(\"TextField\", {\r\n value: \"lllllllllmmmmmmmmmmmmmmlllllllllll\",\r\n padding: {\r\n left: 20,\r\n right: 0\r\n },\r\n width: 100,\r\n height: Ti.UI.SIZE,\r\n borderColor: \"#000\",\r\n color: \"#000\",\r\n borderWidth: 1,\r\n top: 10\r\n});\r\n\r\nvar t2 = $.UI.create(\"TextField\", {\r\n value: \"lllllllllmmmmmmmmmmmmmmlllllllllll\",\r\n padding: {\r\n right: 20,\r\n left: 0\r\n },\r\n width: 100,\r\n height: Ti.UI.SIZE,\r\n borderColor: \"#000\",\r\n color: \"#000\",\r\n borderWidth: 1,\r\n top: 10\r\n});\r\n\r\nvar t3 = $.UI.create(\"TextField\", {\r\n value: \"lllllllllmmmmmmmmmmmmmmlllllllllll\",\r\n padding: {\r\n left: 20,\r\n right: 20\r\n },\r\n width: 100,\r\n height: Ti.UI.SIZE,\r\n borderColor: \"#000\",\r\n color: \"#000\",\r\n borderWidth: 1,\r\n top: 10\r\n});\r\n\r\nvar t4 = $.UI.create(\"TextField\", {\r\n value: \"lllllllllmmmmmmmmmmmmmmlllllllllll\",\r\n padding: {\r\n left: 20,\r\n right: 20\r\n },\r\n width: 100,\r\n height: 100,\r\n borderColor: \"#000\",\r\n color: \"#000\",\r\n borderWidth: 1,\r\n top: 10\r\n});\r\n\r\n\r\nwin.add(t1);\r\nwin.add(t2);\r\nwin.add(t3);\r\nwin.add(t4);\r\n\r\nwin.open();\r\n\r\n{code}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-02T14:39:43.000+0000", "updated": "2016-04-25T16:54:45.000+0000" }, { "id": "382882", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "changing to hashmap \r\n{code}\r\npadding: {left:0,right:0}\r\n{code}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-16T13:57:32.000+0000", "updated": "2016-04-25T16:56:12.000+0000" }, { "id": "386152", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Will merge this once we are ready for 6.0.0.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-05-19T05:03:13.000+0000", "updated": "2016-05-19T05:03:13.000+0000" }, { "id": "386817", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~michael], I've left a few comments in the PR, please address them. Thanks!", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-25T22:25:51.000+0000", "updated": "2016-05-25T22:25:51.000+0000" }, { "id": "386829", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hieu Pham, should all be fixed now", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-05-25T23:15:15.000+0000", "updated": "2016-05-25T23:15:15.000+0000" }, { "id": "386835", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks, looks good man!", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-25T23:55:53.000+0000", "updated": "2016-05-25T23:55:53.000+0000" }, { "id": "389102", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/7908 merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-27T07:12:31.000+0000", "updated": "2016-06-27T07:12:31.000+0000" }, { "id": "393837", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the implementation.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.1.201608190732\r\nTi SDK : 6.0.0.v20160822001523\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.7\r\nAppc CLI : 6.0.0-26\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-22T20:40:16.000+0000", "updated": "2016-08-22T20:40:16.000+0000" } ], "maxResults": 24, "total": 24, "startAt": 0 } } }