{ "id": "125768", "key": "TIMOB-16367", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-08-15T18:00:21.000+0000", "created": "2014-02-03T18:16:25.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "layout", "nested", "parity", "views" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-15T18:00:21.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When a vertical layout is nested within a horizontal layout on an android device. The views don't work properly. The height of the vertical view is added to the horizontal view, and the vertical view is not centered in the horizontal view as it should be (with no top property set) works correctly in iphone, see the iphone result for what i expect should be occurring.\r\n\r\nNotice on android the blue extending past the image (the added height, seemingly equal to the height of the red) and the vertical layout view docked to the top of the horizontal view, should be centered\r\n\r\nWith dynamic data coming in, i'm not sure of a workaround.\r\n\r\nAlloy: \r\n\r\nxml:\r\n{code}\r\n\r\n \r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n \r\n\r\n{code}\r\n\r\ntss:\r\n{code}\r\n\"ImageView\":{\r\n\timage: \"/appicon.png\",\r\n\theight: 64,\r\n\twidth: 64\r\n}\r\n\r\n\".horizontal\": {\r\n\tlayout: \"horizontal\",\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.SIZE,\r\n\tbackgroundColor: \"blue\"\r\n}\r\n\r\n\r\n\".vertical\": {\r\n\tlayout: \"vertical\",\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.SIZE,\r\n\tbackgroundColor: \"red\"\r\n}\r\n\r\n\"Label\":{\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n}\r\n\r\n\"#label1\": {\r\n\ttext: \"Label 1 text\",\r\n\tcolor: \"black\"\r\n}\r\n\r\n\"#label2\": {\r\n\ttext: \"Label 2 text\",\r\n\tcolor: \"black\"\r\n}\r\n{code}", "attachment": [ { "id": "63065", "filename": "Screenshot-Android.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-15T17:59:13.000+0000", "size": 46392, "mimeType": "image/png" }, { "id": "63064", "filename": "Screenshot-iOS.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-15T17:59:13.000+0000", "size": 52152, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Nested layout issue with Android", "creator": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "environment": "3.2 SDK, Android", "comment": { "comments": [ { "id": "291077", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue on Android platform. It works as expected on iOS platform so it is a parity issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-04T05:50:20.000+0000", "updated": "2014-02-04T05:50:20.000+0000" }, { "id": "306519", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "still in 3.3 This but is killing my android design. Any chance for an update?", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2014-05-27T19:47:22.000+0000", "updated": "2014-05-27T19:47:22.000+0000" }, { "id": "322766", "author": { "name": "zeshan_b", "key": "zeshan_b", "displayName": "Zeshan Bilal", "active": true, "timeZone": "America/New_York" }, "body": "So glad someone already posted this bug. Thought, I was the only one(TC-4691) having this issue.\r\n\r\nThought I could use but that didn't help. \r\n\r\nAt the moment the only work around would be to not nest the views for Android. Instead you would treat each view as a
tag in html and position/align using TSS file.\r\n", "updateAuthor": { "name": "zeshan_b", "key": "zeshan_b", "displayName": "Zeshan Bilal", "active": true, "timeZone": "America/New_York" }, "created": "2014-09-10T12:23:38.000+0000", "updated": "2014-09-10T12:23:38.000+0000" }, { "id": "426683", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not a bug. This is working as expected.\r\n\r\nThe horiztonal view will be set to the height based on the tallest child view (in this case, the image). I've also verified that the vertical view is correctly centered vertically within the horizontal view. Attached screenshots showing it working correctly on both Android and iOS.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-15T17:58:40.000+0000", "updated": "2017-08-15T17:59:49.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }