{ "id": "63850", "key": "TIMOB-3218", "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": "2017-06-12T22:29:05.000+0000", "created": "2011-04-15T03:39:45.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core", "parity" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-12T22:29:05.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

If you set a button height to 'auto', it should adjust based on\r\ncontents, similar to a label.

\r\n

Test Code:

\r\n
\r\nvar win = Ti.UI.createWindow({backgroundColor:'#fff'});\r\n\r\nvar button = Titanium.UI.createButton({ \r\nwidth:100,\r\nheight:'auto', \r\nleft:10,\r\ntop:50,\r\ntitle:\"This is my Button\"\r\n});\r\n\r\nvar label = Titanium.UI.createLabel({ \r\nwidth:100,\r\nheight:'auto', \r\nleft:10,\r\ntop:100,\r\ntext:\"This is my Label\"\r\n});\r\n\r\nwin.add(button);\r\nwin.add(label);\r\n\r\nwin.open();\r\n
\r\n

Reference Ticket: http://developer.appcelerator.com/helpdesk/view/75281

{html}", "attachment": [], "flagged": false, "summary": "iOS: Button height:'auto' does not respond", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "194891", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2, on the iOS simulator the button changes the text into 'This...Button' all on the same line. On a Samsung Galaxy S2, the button is fully resized to show the whole text 'This is my Button'. Not sure if this is the expected behavior, but I have added the parity label to this ticket.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-15T13:44:49.000+0000", "updated": "2012-05-15T13:44:49.000+0000" }, { "id": "217242", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested using TiSDK 2.2.0v20120830102513, issue still valid. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-31T14:32:07.000+0000", "updated": "2012-08-31T14:32:07.000+0000" }, { "id": "250507", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces , it seems that its not an expected behavior .\n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T06:46:08.000+0000", "updated": "2013-05-07T06:46:08.000+0000" }, { "id": "420538", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue cannot be reproduced with the following environment; \r\niPhone 7 (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.9.0.201705021158 \r\nTi SDK 6.1.0.v20170519131839 \r\nAppc NPM 4.2.9 \r\nAppc CLI 6.2.1 \r\nTi CLI 5.0.13 \r\nAlloy 1.9.11 \r\nArrow 2.0.0 \r\nXcode 8.2 (8C38) \r\nNode v4.8.2 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-26T18:50:36.000+0000", "updated": "2017-05-26T18:50:36.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }