{ "id": "86196", "key": "TIMOB-7574", "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": "12096", "description": "", "name": "Sprint 2012-04", "archived": true, "released": true, "releaseDate": "2012-02-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-16T18:02:43.000+0000", "created": "2012-02-07T17:29:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-port", "stage2" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-27T15:04:44.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "When using a height value of 'auto', a Label does not resize its height.\r\n\r\nTo reproduce, run the following code in MobileWeb. The attached screen captures show the inconsistent behavior between iOS and MobileWeb.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\nvar label = Ti.UI.createLabel({\r\n\ttext : 'Appcelerator gets your team up and running on Titanium with a full range of training and certification programs: in-classroom, on-demand, or on-site at your location.',\r\n\twidth : 150,\r\n\theight : 'auto',\r\n\ttop : 50,\r\n\tleft : 50,\r\n\tbackgroundColor : '#ddd'\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code} ", "attachment": [ { "id": "25794", "filename": "app.js", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-15T16:51:34.000+0000", "size": 497, "mimeType": "application/x-javascript" }, { "id": "25660", "filename": "labelAutoHeight_iOS.tiff", "author": { "name": "pseda", "key": "pseda", "displayName": "Patrick Seda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T17:29:45.000+0000", "size": 35296, "mimeType": "image/tiff" }, { "id": "25661", "filename": "labelAutoHeight_mobileWeb.tiff", "author": { "name": "pseda", "key": "pseda", "displayName": "Patrick Seda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T17:29:45.000+0000", "size": 12038, "mimeType": "image/tiff" }, { "id": "25708", "filename": "Screen Shot 2012-02-09 at 3.35.43 PM.png", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-02-09T15:38:06.000+0000", "size": 31290, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: Label does not resize appropriately with height 'auto'", "creator": { "name": "pseda", "key": "pseda", "displayName": "Patrick Seda", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pseda", "key": "pseda", "displayName": "Patrick Seda", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "182667", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Also related, I noticed that even if the label gets ellisisized, the height of the label grows. See pic attached.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-02-09T15:36:38.000+0000", "updated": "2012-02-09T15:36:38.000+0000" }, { "id": "182668", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "{code}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff',\r\n layout: 'vertical'\r\n});\r\n\r\nwin.add(Titanium.UI.createLabel({\r\n\ttext:\"A really long line of text that will surely get cut off, but notice how the it gets an ellipsis and yet the height is about the same as if it was wrapping\",\r\n\tbackgroundColor: \"#9A0707\",\r\n\tborder: 1,\r\n\tcolor: \"#fff\",\r\n\tfont:{fontSize:14,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'left',\r\n\tleft:5,\r\n\tright: 5,\r\n\ttop: 5,\r\n\theight:'auto'\r\n}));\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-02-09T15:39:26.000+0000", "updated": "2012-02-09T15:39:26.000+0000" }, { "id": "182979", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It turns out that these two issues are unrelated, so I am focusing on Patrick's issue. I think that Chris' issue has been fixed (or rather sidestepped) due to other changes.\r\n\r\nPatrick: The fix I implemented is not complete, unfortunately. To properly fix it will require TIMOB-7463 and possibly TIMOB-7079, but I am going ahead with the pull request so that we can get the other fixes in sooner rather than later.\r\n\r\nPull Request: https://github.com/appcelerator/titanium_mobile/pull/1409", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-13T15:02:15.000+0000", "updated": "2012-02-13T15:02:15.000+0000" }, { "id": "183451", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening so we can keep track of the remaining issue.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-16T14:10:08.000+0000", "updated": "2012-02-16T14:10:08.000+0000" }, { "id": "183490", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1452 (Same as TIMOB-7463).", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-16T17:50:06.000+0000", "updated": "2012-02-16T17:50:06.000+0000" }, { "id": "216313", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fix on:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120824175712\r\nChrome 21.0.xx\r\nFirefox 14.0.1\r\nSafari 6.0\r\nAndroid 2.3.6 default browser\r\nIphone 5.0.1 mobile safari", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-27T15:04:35.000+0000", "updated": "2012-08-27T15:04:35.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }