{ "id": "171486", "key": "TIMOB-25949", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-26T21:42:44.000+0000", "created": "2018-04-10T07:30:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [ { "id": "57555", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "173525", "key": "TIMOB-27017", "fields": { "summary": "Android: Mocha test Titanium.UI.Layout undefinedTop test failure", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56447", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "169475", "key": "TIMOB-25121", "fields": { "summary": "Windows: Mocha test Titanium.UI.Layout undefinedTop test failure", "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 } } } }, { "id": "56451", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "169476", "key": "TIMOB-25122", "fields": { "summary": "Windows: Mocha test Titanium.UI.Layout centerXPrecedence test failure", "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 } } } }, { "id": "56453", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "169477", "key": "TIMOB-25123", "fields": { "summary": "Windows: Mocha test Titanium.UI.Layout centerYPrecedence test failure", "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": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-26T17:35: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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "{{bottom}} property is not calculated property when it is used with {{center}} property.\r\n\r\n{code:javascript}\r\nvar view1 = Ti.UI.createView({\r\n width: 400, height: 400,\r\n backgroundColor: 'white'\r\n}),\r\nview2 = Ti.UI.createView({\r\n backgroundColor: 'blue',\r\n center: {\r\n x: 200,\r\n y: 200\r\n },\r\n width: 100, bottom: 100\r\n}),\r\nview3 = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: Ti.UI.FILL, height: 1, bottom: 100\r\n});\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'green'\r\n});\r\nview1.add(view2);\r\nview1.add(view3);\r\nwin.add(view1);\r\nwin.open();\r\n{code}\r\n\r\nActual: The blue box ({{view2}}) and ed line ({{view3}}) are not aligned\r\n\r\n !b.png|thumbnail! \r\n\r\nExpected: The blue box ({{view2}}) should be aligned with red line ({{view3}}).\r\n\r\n !a.png|thumbnail! \r\n\r\nMore test cases:\r\n\r\n{code:javascript}\r\nvar view = Ti.UI.createView({\r\n height: 200,\r\n width: 200,\r\n backgroundColor: 'gray'\r\n}),\r\n viewChild = Ti.UI.createView({\r\n backgroundColor: 'blue',\r\n center: {\r\n x: 100\r\n },\r\n right: 50\r\n }),\r\n line = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: 1, height: Ti.UI.FILL,\r\n right: 50, top: 0\r\n });\r\nvar win = Ti.UI.createWindow();\r\nviewChild.addEventListener('postlayout', function () {\r\n Ti.API.info(viewChild.size.width + ' should eql(100)');\r\n});\r\nview.add(viewChild);\r\nview.add(line);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\n{code:javascript}\r\nvar view = Ti.UI.createView({\r\n height: 200,\r\n width: 200,\r\n backgroundColor: 'gray'\r\n}),\r\n viewChild = Ti.UI.createView({\r\n backgroundColor: 'blue',\r\n center: {\r\n y: 100\r\n },\r\n bottom: 50\r\n }),\r\n line = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: Ti.UI.FILL, height: 1,\r\n bottom: 50, left: 0\r\n });\r\nvar win = Ti.UI.createWindow();\r\nviewChild.addEventListener('postlayout', function () {\r\n Ti.API.info(viewChild.size.width + ' should eql(200)');\r\n});\r\nview.add(viewChild);\r\nview.add(line);\r\nwin.add(view);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "65034", "filename": "a.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-04-10T07:29:54.000+0000", "size": 3713, "mimeType": "image/png" }, { "id": "65035", "filename": "b.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-04-10T07:31:55.000+0000", "size": 3237, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Wrong layout with bottom/right and center", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1073, "state": "closed", "name": "2018 Sprint 19 SDK", "startDate": "2018-09-09T21:02:56.422Z", "endDate": "2018-09-23T21:02:00.000Z", "completeDate": "2018-09-23T22:28:10.932Z", "originBoardId": 114 }, { "id": 1078, "state": "closed", "name": "2018 Sprint 20 SDK", "startDate": "2018-09-23T16:57:58.349Z", "endDate": "2018-10-07T16:57:00.000Z", "completeDate": "2018-10-07T23:31:40.476Z", "originBoardId": 114 }, { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 }, { "id": 1053, "state": "closed", "name": "2018 Sprint 15 SDK", "startDate": "2018-07-15T21:52:05.453Z", "endDate": "2018-07-29T21:52:00.000Z", "completeDate": "2018-07-29T22:25:11.723Z", "originBoardId": 114 }, { "id": 1070, "state": "closed", "name": "2018 Sprint 18 SDK", "startDate": "2018-08-26T16:14:35.297Z", "endDate": "2018-09-09T16:14:00.000Z", "completeDate": "2018-09-11T20:59:21.495Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "436752", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1226", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-04-11T07:13:06.000+0000", "updated": "2018-04-11T07:13:06.000+0000" }, { "id": "442086", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed. PR merged.", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-26T21:42:26.000+0000", "updated": "2018-09-26T21:43:05.000+0000" }, { "id": "442126", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on SDK 7.5.0.v20180927072643 . Layout works fine. Closing.\r\n {code}\r\nName = Microsoft Windows 10 Pro \r\n Version = 10.0.17134 \r\n Architecture = 64bit \r\n Node.js \r\n Node.js Version = 8.9.1 \r\n npm Version = 5.5.1 \r\nTitanium CLI \r\n CLI Version = 5.1.1 \r\nTitanium SDK \r\n SDK Version = 7.5.0.v20180927072643 \r\nDevice \r\nLumia 650 dual sim \r\nMobile emulator 10.0.14393 1080p \r\n{code}", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-27T17:54:09.000+0000", "updated": "2018-09-27T17:54:09.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }