{ "id": "100379", "key": "TIMOB-10839", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-09-12T15:48:57.000+0000", "created": "2012-09-04T07:25:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "layout" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "20889", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "100816", "key": "TIMOB-10856", "fields": { "summary": "iOS: Implicit height calculation in vertical layouts are incorrect", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:43:14.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": "h2. Problem description\r\nTi.UI.Label's are being cut of on the bottom in layout vertical when top is specified.\r\n\r\nh2. Test case\r\n{code:lang=javascript|title=app.js}\r\nvar w = Ti.UI.createWindow({\r\n\tbackgroundColor:\"white\"\r\n});\r\n\r\nvar container = Ti.UI.createView({\r\n\twidth:500,\r\n\theight:250,\r\n\tborderColor:\"blue\",\r\n\tlayout:\"vertical\"\r\n});\r\n\r\nvar textLabel1 = Ti.UI.createLabel({\r\n\twidth:Ti.UI.FILL,\r\n\theight:Ti.UI.SIZE,\r\n\t// bottom:10,\r\n\ttext:\"Vestibulum id ligula porta felis euismod semper.\",\r\n\tfont: {\r\n\t\tfontSize:24,\r\n\t\tfontWeight:\"bold\"\r\n\t}\r\n});\r\n\r\nvar textLabel2 = Ti.UI.createLabel({\r\n\t// top:10,\r\n\twidth:Ti.UI.FILL,\r\n\theight:Ti.UI.FILL,\r\n\ttext:\"Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur. Nullam quis risus eget urna mollis ornare vel eu leo. Donec sed odio dui. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Aenean lacinia bibendum nulla sed consectetur. Maecenas sed diam eget risus varius blandit sit amet non magna. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Maecenas sed diam eget risus varius blandit sit amet non magna. Sed posuere consectetur est at lobortis.\"\r\n});\r\n\r\ncontainer.add(textLabel1);\r\ncontainer.add(textLabel2);\r\nw.add(container);\r\nw.open();\r\n{code}\r\n\r\nIf you toggle the top:10 in textLabel2 on and off you see that the label is cut off and half a line is shown.\r\nIf you give textLabel1 a bottom instead of textLabel2 a top it looks as expected.\r\nIf you don't use vertical layout it works as expected.\r\n\r\nh2. Expected\r\nLabels should truncate the labels text and add ...'s.", "attachment": [], "flagged": false, "summary": "iOS: Labels are cut off at bottom in vertical layout", "creator": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS 5, Ti SDK 2.1.1, iPad", "comment": { "comments": [ { "id": "218731", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Different issue, same cause.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-12T15:48:39.000+0000", "updated": "2012-09-12T15:48:39.000+0000" }, { "id": "218732", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Duplicates TIMOB-10856", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-12T15:48:57.000+0000", "updated": "2012-09-12T15:48:57.000+0000" }, { "id": "232493", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is actually not a duplicate, and not fixed... (now also tested on SDK 3.0.0.GA, and in Alloy)", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-22T13:37:19.000+0000", "updated": "2012-12-22T13:37:19.000+0000" }, { "id": "414903", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of the ticket that is mentioned above and has since been closed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:40:45.000+0000", "updated": "2017-03-22T20:40:45.000+0000" }, { "id": "414909", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "Closed, not fixed...", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-03-22T20:43:14.000+0000", "updated": "2017-03-22T20:43:14.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }