{ "id": "150942", "key": "TIMOB-19462", "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": "2019-12-06T23:25:52.000+0000", "created": "2015-09-03T06:31:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "Alloy", "label", "layout", "reprod", "view" ], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-12-06T23:25:52.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": "h6.Issue Description\r\n\r\nThere is an horizontal view and when the user add Labels and/or text inputs to the view the label text is not aligned at the edge of the screen, see the attached image. \r\n\r\nh6.Expected behavior\r\n\r\nThe text should be aligned \r\n\r\nh6.Steps to Replicate: \r\n1. Create a new titanium classic default project \r\n2. Open the app.js file\r\n3. Replace the app.js with the code in the test case\r\n4. Run on iOS iphone 5/5S\r\n \r\nh6.Test Case\r\n\r\n{code}\r\nvar mainWindow =Ti.UI.createWindow({\r\ntop:20,\r\nbackgroundColor:'white',\r\nlayout:'horizontal'\r\n});\r\n\r\nvar mainView = Ti.UI.createView({\r\nbackgroundColor:'white',\r\nlayout:'horizontal'\r\n});\r\n \r\n\r\nvar label1 = Ti.UI.createLabel({\r\ntext : 'label1 ',\r\n});\r\n\r\nvar label2 = Ti.UI.createLabel({\r\ntext : 'label2 ',\r\n});\r\nvar label3 = Ti.UI.createLabel({\r\ntext : 'label3 ',\r\n});\r\nvar label4 = Ti.UI.createLabel({\r\ntext : 'label4 ',\r\n});\r\n\r\nvar input = Ti.UI.createTextField({\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n keyboardType:\"Ti.UI.KEYBOARD_DECIMAL_PAD\",\r\n textAlign:\"right\",\r\n enableReturnKey:\"true\", \r\n keyboardToolbarColor:\"#999\",\r\n returnKeyType:\"Ti.UI.RETURNKEY_DONE\",\r\n hintText:\"8.0\",\r\n maxLength:\"4\", \r\n color: '#336699'\r\n});\r\n\r\nvar label5 = Ti.UI.createLabel({\r\ntext : 'label5 ',\r\n});\r\n\r\nvar label6 = Ti.UI.createLabel({\r\ntext : 'label6 ',\r\nhorizontalWrap: true\r\n});\r\nvar label7 = Ti.UI.createLabel({\r\ntext : 'label7 ',\r\n});\r\nvar label8 = Ti.UI.createLabel({\r\ntext : 'label8 ',\r\n});\r\n\r\n\r\n// Add to the parent view.\r\nmainView.add(label1);\r\nmainView.add(label2);\r\nmainView.add(label3);\r\nmainView.add(label4);\r\nmainView.add(input);\r\nmainView.add(label5);\r\nmainView.add(label6);\r\nmainView.add(label7);\r\nmainView.add(label8);\r\n\r\nmainWindow.add(mainView);\r\nmainWindow.open();\r\n\r\n{code}", "attachment": [ { "id": "56589", "filename": "Screen Shot 2015-09-03 at 1.03.30 AM.png", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-03T06:31:23.000+0000", "size": 28775, "mimeType": "image/png" }, { "id": "57548", "filename": "Screen Shot 2015-11-19 at 2.16.00 PM.png", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-19T23:01:38.000+0000", "size": 27229, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Titanium Labels not aligned on horizontal layout in a view", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS8.4 \r\nXcode 6.4 \r\nTitanium SDK 3.5.1.GA, 4.0.0.GA, 4.1.0.GA", "comment": { "comments": [ { "id": "370753", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello , I'm sorry to hear that you're experiencing issues with the platform. We've tested the issue using the app.js provided in the description, on the latest SDK(5.1.0) and the issue is not reproducible. I managed to reproducible the issue by creating a for loop in which i added 10 labels without specifying the height. However if the label height is specified the view behaves as expected. Also the app.js provided isn't the same , as the one used on screenshot , if you could update it please. Thank you! ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-18T21:58:15.000+0000", "updated": "2015-11-18T21:58:38.000+0000" }, { "id": "370829", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Angel ! did you used the 5/5S emulator ?, another way to reproduce is using liveview and add more labels, Please also try using the SDK 5.0.2 GA. ", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-19T16:43:38.000+0000", "updated": "2015-11-19T16:48:53.000+0000" }, { "id": "370899", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just tested it on 5.0.3 GA and iPhone 5's simulator works as expected. We've also tested it on a 5s device both through Xcode and Appcelerator studio. Ive attached a screen shot to the ticket. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-19T23:00:51.000+0000", "updated": "2015-11-19T23:00:51.000+0000" }, { "id": "371354", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After some testing we belive that this is not a bug but the expected behavior of the View. If a label is too big to fit on the screen please specify the height of the button and it will fix the layout issue. If you encounter any other issue's feel free to leave a comment and we will do anything we can to resolve it. Thank you! ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-24T17:49:23.000+0000", "updated": "2015-11-24T17:49:23.000+0000" }, { "id": "453078", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce. Labels are aligning properly.\r\n\r\nAxway Appcelerator Studio, build: 5.1.4.201909061933 \r\nmacOS : 10.15\r\nNode.js Version : 8.9.1\r\nnpm Version : 5.5.1\r\nAppcelerator CLI : 7.1.2\r\nTitanium CLI\r\nCLI Version : 5.2.1\r\nnode-appc Version : 0.2.49\r\nTitanium SDKs : 8.3.0.GA\r\niPhone 11 13.2.2", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-12-06T23:25:52.000+0000", "updated": "2019-12-06T23:25:52.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }