{ "id": "100583", "key": "TIMOB-10858", "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-17T15:25:36.000+0000", "created": "2012-09-06T16:27:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "layout", "regression" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "21055", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "100614", "key": "TIMOB-10812", "fields": { "summary": "Android: Ti.UI.SIZE on width does not work with horizontal layouts", "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": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T23:11:09.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": "There is a problem with the property horizontalWrap. In this case, when it's set to false and used with horizontal views nested into a vertical view.\r\nI've created a minimal example code:\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({title:'UI-Test'\t});\r\nvar parentView,i, blockH, labelL, labelR;\r\n\r\nparentView = Ti.UI.createView({layout: 'vertical',top:1,backgroundColor:'yellow'});\r\n\r\nfor(i = 0; i< 5; i++){\r\n\tblockH = Ti.UI.createView({layout:'horizontal',horizontalWrap: false,height:Ti.UI.SIZE,backgroundColor:'blue'});\r\n\tlabelL = Ti.UI.createLabel({left:10,width: '30%',text:'label' + i,backgroundColor: 'red'});\r\n\tlabelR = Ti.UI.createLabel({left: 1,width: '70%',backgroundColor:'green',\r\n\t\ttext:'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'});\r\n\tblockH.add(labelL);\r\n\tblockH.add(labelR);\r\n\tparentView.add(blockH);\r\n}\r\nwin.backgroundColor = 'black';\r\nwin.add(parentView);\r\nwin.open();\r\n{code}\r\n\r\nI've attached a file, called 'UI-Test-sdk-2-1-0.png', with the expected result using Titanium SDK 2.1.0GA in both emulators\r\nAnd another file, called 'UI-Test-sdk-2-1-2.png', with the bugged result using Titanium SDK 2.1.0GA in both emulators\r\n\r\nThis issue is related to TIMOB-10003 and TIMOB-10173\r\nWorks well with Titanium SDK versions 2.1.0GA and 2.1.1GA in both emulators (Android, iPhone)\r\n\r\nRegards", "attachment": [ { "id": "31062", "filename": "UI-Test-sdk-2-1-0.png", "author": { "name": "kabomi", "key": "kabomi", "displayName": "Imobach Martín", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-09-06T16:27:40.000+0000", "size": 56553, "mimeType": "image/png" }, { "id": "31063", "filename": "UI-Test-sdk-2-1-2.png", "author": { "name": "kabomi", "key": "kabomi", "displayName": "Imobach Martín", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-09-06T16:27:40.000+0000", "size": 40590, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: horizontalWrap:false does not work well with horizontal views nested into a vertical view", "creator": { "name": "kabomi", "key": "kabomi", "displayName": "Imobach Martín", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "kabomi", "key": "kabomi", "displayName": "Imobach Martín", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version 2.1.2GA\r\nv8\r\nGoogle Apis Android 2.2\r\nAndroid Emulator\r\nMacOs X 10.7.4 / Linux Debian Wheezy 64 bits", "comment": { "comments": [ { "id": "218473", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A regression issue.", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-11T16:54:09.000+0000", "updated": "2012-09-11T16:54:09.000+0000" }, { "id": "219365", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a duplicate of TIMOB-10812, which has been resolved.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-17T15:25:36.000+0000", "updated": "2012-09-17T15:25:36.000+0000" }, { "id": "219842", "author": { "name": "kabomi", "key": "kabomi", "displayName": "Imobach Martín", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have tested the issue against sdk 2.1.3.v20120915120319, launched recently. It says to have TIMOB-10812 resolved. But the issue described here is still present. I still get a full yellow view in android, like shown on the attached photo.", "updateAuthor": { "name": "kabomi", "key": "kabomi", "displayName": "Imobach Martín", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-09-19T15:19:30.000+0000", "updated": "2012-09-19T15:19:30.000+0000" }, { "id": "219883", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It turns out I left out a change in the original PR for TIMOB-10003 that caused this to be broken in the 2_1_X branch. I created a backport for this: https://github.com/appcelerator/titanium_mobile/pull/3005", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T18:08:35.000+0000", "updated": "2012-09-19T18:08:35.000+0000" }, { "id": "414663", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T23:11:09.000+0000", "updated": "2017-03-21T23:11:09.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }