{ "id": "122691", "key": "TIMOB-15771", "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": null, "resolutiondate": null, "created": "2013-11-20T07:39:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam", "reprod" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\n\r\nStep to reproduce\r\n\r\n1. Create a new mobile project\r\n2. Add support for android\r\n3. Paste the code into app.js\r\n4. Run and click a buttons (top, center, bottom)\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text : 'too long text, too long text',\r\n top : 150,\r\n width : 300,\r\n height : 100,\r\n font : {\r\n fontSize: 10\r\n },\r\n borderColor : 'red',\r\n textAlign : 'right',\r\n verticalAlign : Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP\r\n});\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n text : 'too long text, too long text, too long text, too long text',\r\n top : 300,\r\n width : 300,\r\n height : 100,\r\n font : {\r\n fontSize: 100\r\n },\r\n minimumFontSize : 10,\r\n borderColor : 'red',\r\n textAlign : 'right',\r\n verticalAlign : Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,\r\n color : 'red'\r\n});\r\n\r\nvar bb = Titanium.UI.createButtonBar({\r\n labels:['TOP', 'CENTER', 'BOTTOM'],\r\n backgroundColor:'#336699',\r\n top:50,\r\n style:Titanium.UI.iPhone.SystemButtonStyle.BAR,\r\n height:25,\r\n width:200\r\n});\r\n\r\nbb.addEventListener('click',function(e){\r\n label.verticalAlign=Ti.UI[\"TEXT_VERTICAL_ALIGNMENT_\"+bb.labels[e.index]];\r\n label2.verticalAlign=Ti.UI[\"TEXT_VERTICAL_ALIGNMENT_\"+bb.labels[e.index]];\r\n});\r\n\r\nwin.add(label);\r\nwin.add(label2);\r\nwin.add(bb);\r\nwin.open();\r\n{code}\r\n\r\nh4. Expected Behavior:\r\nText alignment work properly. When click button, text move(top, center, bottom)\r\n\r\nh4. Actual Behavior:\r\ntop : red text(with minimumFontSize) located on bottom\r\ncenter : red text(with minimumFontSize) located on out of border\r\nbottom : red text disapear???", "attachment": [], "flagged": false, "summary": "iOS : Label verticalAlign doesn't work property if minimumFontSize set", "creator": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "subtasks": [], "reporter": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "environment": "iOS 7\r\nTitanium SDK 3.1.3GA", "comment": { "comments": [ { "id": "421907", "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\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170609091155\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.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-13T22:33:37.000+0000", "updated": "2017-06-13T22:33:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }