{ "id": "169685", "key": "TIMOB-25221", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-07T01:15:16.000+0000", "created": "2017-09-01T14:37:45.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "automated", "layout", "regression" ], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-30T17:37:27.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": "*Summary:*\r\nWhen setting both top AND bottom on an element inside a vertical layout view it won't add spacing between the elements but fill up the whole space. \r\n\r\n*Versions:*\r\n6.1.2.GA: works fine \r\n!612_ga.png|thumbnail! \r\n\r\n6.2.0.RC: broken layout when both properties are set\r\n !620_rc.png|thumbnail! \r\n\r\n*Work-around:*\r\nremove top OR bottom\r\n !620_rc_one.png|thumbnail! \r\n\r\n*Code:*\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff'\r\n});\r\n\r\nvar scroller = Ti.UI.createScrollView({\r\n height:Ti.UI.FILL,\r\n width: Ti.UI.FILL,\r\n layout:\"vertical\"\r\n});\r\n\r\nfor (var i=0;i<10;++i){\r\n var l = Ti.UI.createLabel({\r\n top:10,\r\n bottom:10,\r\n height:Ti.UI.SIZE,\r\n text: \"Text\",\r\n color:\"#000\"\r\n });\r\n scroller.add(l);\r\n}\r\n\r\nwin.add(scroller);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "63163", "filename": "612_ga.png", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-01T14:33:46.000+0000", "size": 49998, "mimeType": "image/png" }, { "id": "63162", "filename": "620_rc_one.png", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-01T14:33:46.000+0000", "size": 47750, "mimeType": "image/png" }, { "id": "63161", "filename": "620_rc.png", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-01T14:33:46.000+0000", "size": 32260, "mimeType": "image/png" }, { "id": "63189", "filename": "CompositePinning-Bad.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T03:14:37.000+0000", "size": 54163, "mimeType": "image/png" }, { "id": "63190", "filename": "CompositePinning-Good.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T03:14:37.000+0000", "size": 55659, "mimeType": "image/png" }, { "id": "63191", "filename": "CompositePinningTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T03:14:37.000+0000", "size": 2755, "mimeType": "application/x-javascript" }, { "id": "63186", "filename": "VerticalPinning-Bad.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T01:25:11.000+0000", "size": 93032, "mimeType": "image/png" }, { "id": "63187", "filename": "VerticalPinning-Good.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T01:25:11.000+0000", "size": 184002, "mimeType": "image/png" }, { "id": "63188", "filename": "VerticalPinningTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T01:25:11.000+0000", "size": 766, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Vertical Layout with top+bottom broken", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "427523", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Thanks for the report [~michael], moving over to TIMOB\r\n\r\nCan reproduce using\r\n\r\nTi SDK 6.2.0.v20170831112315\r\nOnePlus 3 7.1.1", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-01T15:58:00.000+0000", "updated": "2017-09-01T15:58:00.000+0000" }, { "id": "427524", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jquick] Looks like it was caused by [4d867c87#L490|https://github.com/appcelerator/titanium_mobile/commit/4d867c8744fd66c850eaf3f60f0b31f64a337a6c#diff-b7d8226bed739c2390e67e486bad811fL490]. You may want to check {{left}} and {{right}} too [4d867c87#L490|https://github.com/appcelerator/titanium_mobile/commit/4d867c8744fd66c850eaf3f60f0b31f64a337a6c#diff-b7d8226bed739c2390e67e486bad811fL460].", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-01T16:18:10.000+0000", "updated": "2017-09-01T16:18:10.000+0000" }, { "id": "427525", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Left/right with horizontal was working fine", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-01T16:20:20.000+0000", "updated": "2017-09-01T16:20:20.000+0000" }, { "id": "427527", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-01T18:43:26.000+0000", "updated": "2017-09-01T18:43:26.000+0000" }, { "id": "427528", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-01T23:34:48.000+0000", "updated": "2017-09-01T23:34:48.000+0000" }, { "id": "427607", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Attached a [^VerticalPinningTest.js] script to help test/exercise various top/bottom/left/right pinning in a vertical layout. The \"VerticalPinning-Bad.png\" shows the bad behavior in Titanium 6.2.0 RC. The \"VerticalPinning-Good.png\" is the expected behavior.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T01:30:06.000+0000", "updated": "2017-09-06T01:30:06.000+0000" }, { "id": "427609", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also attached [^CompositePinningTest.js] script to test with composite layouts as well, which has a similar regression as vertical layouts in 6.2.0.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T03:15:55.000+0000", "updated": "2017-09-06T03:15:55.000+0000" }, { "id": "427610", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9403\r\nPR (6.2.x): https://github.com/appcelerator/titanium_mobile/pull/9404", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T04:17:54.000+0000", "updated": "2017-09-06T04:17:54.000+0000" }, { "id": "427660", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. PR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-07T01:14:49.000+0000", "updated": "2017-09-07T01:14:49.000+0000" }, { "id": "427697", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 6.2.0.v20170907070223 & 7.0.0.v20170907070720.\r\n\r\nClosing.\r\n\r\nStudio Ver: 4.9.1.201707200100\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.4-9\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.13\r\nNode Ver: 6.11.2\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 5 --- Android 6.0.1\r\n ⇨ google Pixel --- Android 7.1.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-07T18:32:39.000+0000", "updated": "2017-09-07T18:32:39.000+0000" }, { "id": "429780", "author": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "body": "This issue still continue with SDK 6.2.2GA", "updateAuthor": { "name": "Kerbooo", "key": "kerbooo", "displayName": "Kerberos", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2017-10-29T01:54:07.000+0000", "updated": "2017-10-29T01:54:07.000+0000" }, { "id": "429844", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~Kerbooo], this JIRA case's specific issue along with its 3 attached JavaScript test cases is definitely solved in 6.2.0.GA. If you're running into a layout issue, then can you write up a new case via the \"Create\" button above and attach reproducible test code please? Thanks.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-30T17:37:27.000+0000", "updated": "2017-10-30T17:37:27.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }