{ "id": "98047", "key": "TIMOB-10252", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-04-28T20:59:47.000+0000", "created": "2012-07-26T04:49:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "37155", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "61739", "key": "TIMOB-1107", "fields": { "summary": "TiAPI: Add shadowOffset for Label", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "35347", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "76311", "key": "TIMOB-4384", "fields": { "summary": "Android: Parity Issue: Title in button is displayed in multiline and when the view area is not large enough it gets cut off", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-07-26T15:46: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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "I added \r\nButton: \r\n - shadowColor\r\n - shadowOffset\r\n - wordWrap\r\n - verticalAlign\r\n - titlePaddingLeft,titlePaddingTop, titlePaddingBottom, titlePaddingRight\r\n\r\nLabel:\r\n - shadowColor\r\n - shadowOffset\r\n - textPaddingLeft,textPaddingTop, textPaddingBottom, textPaddingRight\r\n\r\nTestCase\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n layout:'vertical'\r\n});\r\n\r\n\r\nvar button = Ti.UI.createButton({\r\n top:10,\r\n width:100,\r\n height:50,\r\n shadowColor:'#ddff0000',\r\n shadowOffset:{x:2,y:2},\r\n wordWrap:true,\r\n title:'This is a test button'\r\n});\r\nwin.add(button);\r\n\r\nbutton = Ti.UI.createButton({\r\n top:10,\r\n width:100,\r\n height:50,\r\n shadowColor:'#5500ff00',\r\n shadowOffset:{x:-2,y:0},\r\n wordWrap:false,\r\n title:'This is a test button'\r\n});\r\nwin.add(button);\r\n\r\nbutton = Ti.UI.createButton({\r\n top:10,\r\n width:100,\r\n height:50,\r\n shadowColor:'#ddff0000',\r\n shadowOffset:{x:-2,y:0},\r\n wordWrap:false,\r\n verticalAlign:'top',\r\n titlePaddingLeft:10,\r\n titlePaddingRight:40,\r\n titlePaddingTop:5,\r\n titlePaddingBottom:15,\r\n title:'This is a test button'\r\n});\r\nwin.add(button);\r\n\r\nlabel = Ti.UI.createLabel({\r\n top:10,\r\n width:100,\r\n height:40,\r\n backgroundColor:'gray',\r\n shadowColor:'#ddff0000',\r\n shadowOffset:{x:2,y:2},\r\n wordWrap:false,\r\n verticalAlign:1,\r\n textPaddingLeft:10,\r\n textPaddingRight:40,\r\n textPaddingTop:-15,\r\n textPaddingBottom:15,\r\n text:'This is a test label which needs to be quite long'\r\n});\r\nwin.add(label);\r\n\r\nlabel = Ti.UI.createLabel({\r\n top:10,\r\n width:100,\r\n height:80,\r\n backgroundColor:'gray',\r\n shadowColor:'#5500ff00',\r\n shadowOffset:{x:-2,y:0},\r\n wordWrap:false,\r\n verticalAlign:2,\r\n text:'This is a test button'\r\n});\r\nwin.add(label);\r\n\r\nlabel = Ti.UI.createLabel({\r\n top:10,\r\n width:100,\r\n height:80,\r\n backgroundColor:'gray',\r\n shadowColor:'#5500ff00',\r\n shadowOffset:{x:-2,y:0},\r\n wordWrap:false,\r\n verticalAlign:0,\r\n text:'This is a test label'\r\n});\r\nwin.add(label);\r\n\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "TiAPI: Button/label: Add wordWrap, textPadding, titlePadding", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "Titanium 2.2.0 (master)\r\nios 5.1\r\nandroid 3.2", "comment": { "comments": [ { "id": "209529", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request https://github.com/appcelerator/titanium_mobile/pull/2645", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-07-26T05:04:37.000+0000", "updated": "2012-07-26T05:04:37.000+0000" }, { "id": "274247", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you for the PR. We're going to revisit this for 3.3.0. It would be helpful if this was not a single PR but multiple smaller requests.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-08T20:41:38.000+0000", "updated": "2013-10-08T20:41:38.000+0000" }, { "id": "289580", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Important properties, are there still on the 3.3.0 roadmap?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-01-24T09:39:47.000+0000", "updated": "2014-01-24T09:39:47.000+0000" }, { "id": "289654", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Currently, yes.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-24T22:00:14.000+0000", "updated": "2014-01-24T22:00:14.000+0000" }, { "id": "302791", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have implemented shadowOffset and shadowColor as part of TIMOB-1107. We have decided not to implement wordWrap, verticalAlign and titlePadding as they are non-native behaviors. If people feel that they need these properties, please provide a use case and we would be happy to revisit this decision.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-28T20:58:43.000+0000", "updated": "2014-04-28T20:58:43.000+0000" }, { "id": "302792", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking as won't fix. Shadow properties already fixed as a result of TIMOB-1107.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-28T20:59:47.000+0000", "updated": "2014-04-28T20:59:47.000+0000" }, { "id": "415475", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:38:10.000+0000", "updated": "2017-03-23T22:38:10.000+0000" }, { "id": "450086", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Use Case: I need a narrow button with 3 words on it. I used to be able to put a newline (\\n) character between the words, and I would get 3 vertically-stacked words, which is what I want. This was back in Ti SDK 5.x on Android (I had to create a label and add it to the button as a child in iOS). Now I'm working in Ti SDK 7.5.2 and the newline is no longer working...I only get the first word in my button.\r\n\r\nPlease allow wordwrap, or at least fix the problem with a button's title when that title contains newline(s).", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2019-07-26T15:46:18.000+0000", "updated": "2019-07-26T15:46:18.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }