{ "id": "83252", "key": "TIMOB-6392", "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": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-13T18:53:18.000+0000", "created": "2011-11-30T14:36:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "breaking-change", "button", "reprod" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "55730", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "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": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updated": "2019-07-26T15:52:54.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": "Ti.UI.Button text values containing too many displayable characters are: truncated without a visual cue (Android 2.3), displayed outside the background image of the button (Android 2.2, 2.3), or cut in half horizontally (Nook). Screenshots attached.\r\n\r\nIn contrast, large text values in iOS buttons contain an ellipsis (ensuring the user is aware of the missing text).\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a project using the following code:\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({title:'Tab 1',backgroundColor:'#fff'});\r\nvar button = Titanium.UI.createButton({title:'Set active tab via index (Controls)',top:160,height:40,width:200});\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\n2. Run the project using the Android Emulator 2.2 WVGA854 (a known error-observable configuration).\r\n3. The button appears.\r\n\r\nExpected Result:\r\n\r\nButton text should display within the button area, be displayed in full, or displayed with an ellipsis (i.e., iOS).\r\n\r\nActual Result:\r\n\r\nButton text is displayed outside the button area, horizontally cut in half, or truncated without a visual cue.\r\n\r\nNote:\r\n\r\nThe Android runtime (V8, Rhino), TiMob SDK, or device orientation do not affect this behavior.", "attachment": [ { "id": "24395", "filename": "android-2.2-button-text-display.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-30T14:36:42.000+0000", "size": 14012, "mimeType": "image/png" }, { "id": "24397", "filename": "Android - Button Text - Display Screenshots.zip", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-30T14:36:42.000+0000", "size": 409461, "mimeType": "application/zip" }, { "id": "24396", "filename": "ios-5.0-button-text-display.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-30T14:36:42.000+0000", "size": 11696, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Ti.UI.Button text values with too many displayable characters draw improperly", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.0.1.v20111129200258, 1.7.5\r\nAndroid Runtimes: V8, Rhino\r\nStudio: 1.0.7.201111291553\r\nOS: OS X Lion\r\nDevices Tested: all Android/Nook devices/emulators, iOS Simulator 5.0", "comment": { "comments": [ { "id": "424032", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-12T21:35:25.000+0000", "updated": "2017-07-12T21:35:25.000+0000" }, { "id": "426520", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/9299", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2017-08-11T03:37:46.000+0000", "updated": "2017-08-11T03:37:46.000+0000" }, { "id": "430363", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for merge to get enabled.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-09T22:47:05.000+0000", "updated": "2017-11-09T22:47:05.000+0000" }, { "id": "430526", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-13T18:53:13.000+0000", "updated": "2017-11-13T18:53:13.000+0000" }, { "id": "430679", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Changes are seen in SDK 7.0.0.v20171114203226.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-15T07:09:20.000+0000", "updated": "2017-11-15T07:09:20.000+0000" }, { "id": "450088", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "On Android, the problem now is that a button with a title of 'Line1\\nLine2', which used to display correctly (vertically stacked) is now being truncated to just show 'Line1'. This is on a button that has plenty of room to show both lines of text.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2019-07-26T15:52:54.000+0000", "updated": "2019-07-26T15:52:54.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }