{ "id": "142072", "key": "TIMOB-19598", "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-08-23T00:06:03.000+0000", "created": "2014-12-24T14:47:35.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "TCSupportTriage", "android" ], "versions": [], "issuelinks": [ { "id": "55825", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "169561", "key": "TIMOB-25173", "fields": { "summary": "Android: Size/Fill layout conflicts are not handled the same as iOS and Windows", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-23T00:06:46.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": "height for view on android calculating wrong and different then on iOS\r\nthis happens if layout set to 'horizontal' and child views have width set to Ti.UI.FILL\r\n\r\n~~~\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#fff'\r\n\r\n});\r\n\r\nvar font = {\r\n fontSize : '14dp'\r\n};\r\n\r\nvar View = Ti.UI.createView({\r\n height : Ti.UI.SIZE,\r\n borderColor : '#666',\r\n borderWidth : '1dp',\r\n left : '10dp',\r\n right : '10dp',\r\n top : '50dp',\r\n layout : 'horizontal',\r\n backgroundColor : '#dfd'\r\n});\r\n\r\nvar toLabel = Ti.UI.createLabel({\r\n left : '5dp',\r\n top : '5dp',\r\n text : 'To:',\r\n width : Ti.UI.SIZE,\r\n font : font,\r\n backgroundColor : '#dfa'\r\n});\r\nvar toCardLabel = Ti.UI.createLabel({\r\n top : '5dp',\r\n right : '5dp',\r\n text : '123456789\\n($456)',\r\n width : Ti.UI.FILL,\r\n textAlign : 'right',\r\n font : font,\r\n color : '#666',\r\n backgroundColor : '#bfd'\r\n});\r\n\r\nvar fromLabel = Ti.UI.createLabel({\r\n left : '5dp',\r\n top : '5dp',\r\n text : 'From:',\r\n width : Ti.UI.SIZE,\r\n font : font,\r\n backgroundColor : '#bdd'\r\n\r\n});\r\nvar fromCardLabel = Ti.UI.createLabel({\r\n top : '5dp',\r\n right : '5dp',\r\n text : '123456789\\n($456)',\r\n width : Ti.UI.FILL,\r\n textAlign : 'right',\r\n font : font,\r\n color : '#666',\r\n backgroundColor : '#ee9'\r\n});\r\n\r\nvar amountLabel = Ti.UI.createLabel({\r\n left : '5dp',\r\n top : '5dp',\r\n bottom : '5dp',\r\n height : Ti.UI.SIZE,\r\n text : 'Amount to transfer:',\r\n width : Ti.UI.SIZE,\r\n font : font,\r\n backgroundColor : '#ee6'\r\n});\r\nvar amountField = Ti.UI.createLabel({\r\n top : '5dp',\r\n right : '5dp',\r\n text : '$1245',\r\n width : Ti.UI.FILL,\r\n textAlign : 'right',\r\n color : '#393',\r\n font : font,\r\n backgroundColor : '#cdb'\r\n});\r\n\r\nwin.add(View);\r\n\r\nView.add(toLabel);\r\nView.add(toCardLabel);\r\n\r\nView.add(fromLabel);\r\nView.add(fromCardLabel);\r\n\r\nView.add(amountLabel);\r\nView.add(amountField);\r\n\r\nwin.open();\r\n~~~", "attachment": [ { "id": "53357", "filename": "Снимок экрана 2014-12-24 в 16.41.46.png", "author": { "name": "rian", "key": "rian", "displayName": "Andrey Pervushin", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2014-12-24T14:47:35.000+0000", "size": 49739, "mimeType": "image/png" } ], "flagged": false, "summary": "Bug with Ti.UI.SIZE for view height on android", "creator": { "name": "rian", "key": "rian", "displayName": "Andrey Pervushin", "active": true, "timeZone": "Europe/Helsinki" }, "subtasks": [], "reporter": { "name": "rian", "key": "rian", "displayName": "Andrey Pervushin", "active": true, "timeZone": "Europe/Helsinki" }, "environment": "sdk: 3.3.0\r\nplatform: android", "closedSprints": [ { "id": 939, "state": "closed", "name": "2017 Sprint 17 SDK", "startDate": "2017-08-13T23:08:29.095Z", "endDate": "2017-08-27T23:08:00.000Z", "completeDate": "2017-08-27T21:10:54.125Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427073", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR. PR merged. Changes are seen in SDK versions:\r\n6.2.0.v20170822113609\r\n7.0.0.v20170822142802", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-23T00:06:03.000+0000", "updated": "2017-08-23T00:06:03.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }