{ "id": "162390", "key": "TIMOB-23723", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-05T00:59:53.000+0000", "created": "2016-08-03T20:14:16.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "imageview", "regression", "windows" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-05T20:40:45.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": "issue in 5_4_X 5.4.0.v20160802165655\r\nworking fine on 5.3.0, but not on 5_4_X 5.4.0.v20160802165655\r\n\r\n{code:javascript}\r\n var scrollView = Ti.UI.createScrollView({\r\n\t\ttop: 0,\r\n\t\tleft: 0,\r\n\t\tright: 0,\r\n\t\tbottom: 0,\r\n\t\tbackgroundColor: 'yellow',\r\n\t});\r\n\tvar image = Ti.UI.createImageView({\r\n\t\timage: '/icons/default.jpg',\r\n\t\tleft: 0,\r\n\t\ttop: 0,\r\n\t\tbottom: 0,\r\n\t\twidth: '1000dp',\r\n\t\theight: Ti.UI.FILL,\r\n\t\tbackgroundColor: 'green',\r\n\t});\r\n\tscrollView.add(image);\r\n\t$.win.add(scrollView);\r\n\t$.win.open();\r\n{code}\r\n\r\nImageView width Ti.UI.SIZE not working.\r\n\r\n*Test Code*\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'purple'}),\r\n img = Ti.UI.createImageView({\r\n image: 'Logo.png',\r\n backgroundColor: 'red',\r\n left: 0,\r\n top: 0,\r\n bottom: 0,\r\n width: Ti.UI.SIZE,\r\n height: Ti.UI.SIZE\r\n });\r\nwin.add(img);\r\nwin.open();\r\n{code}\r\n\r\n*Expected*\r\n\r\nImage should be visible\r\n\r\n", "attachment": [], "flagged": false, "summary": "Windows: ImageView width Ti.UI.SIZE not working", "creator": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Nokia Lumia 625", "closedSprints": [ { "id": 685, "state": "closed", "name": "2016 Sprint 16 SDK", "startDate": "2016-07-30T00:40:02.939Z", "endDate": "2016-08-13T00:40:00.000Z", "completeDate": "2016-08-15T08:00:33.056Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "392437", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/804\r\n5_4_X: https://github.com/appcelerator/titanium_mobile_windows/pull/805\r\n\r\n*TEST CASE*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'purple'}),\r\n img = Ti.UI.createImageView({\r\n image: 'Logo.png',\r\n backgroundColor: 'red',\r\n left: 0,\r\n top: 0,\r\n bottom: 0,\r\n width: Ti.UI.SIZE,\r\n height: Ti.UI.SIZE\r\n });\r\nwin.add(img);\r\nwin.open();\r\n{code}\r\n\r\n*NOTE*\r\nIt's good practice to not set {{top}} and {{bottom}} if a {{height}} is already defined. Same for {{left}} {{right}} and {{width}}.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-04T16:45:47.000+0000", "updated": "2016-08-04T16:45:47.000+0000" }, { "id": "392548", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro\r\nAppc core: 5.4.0-3\r\nAppc NPM: 4.2.7\r\nTi SDK: 5.4.0.v20160804185318\r\n\r\nWhen setting the left, top and bottom properties and also setting width and height on UI elements the element can now be seen.\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-08-05T19:01:29.000+0000", "updated": "2016-08-05T19:01:29.000+0000" }, { "id": "392550", "author": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In last build it's NOT FIXED. Please, test with scroll view. It seems that scroll view wrongly determine content size. ", "updateAuthor": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-05T20:40:45.000+0000", "updated": "2016-08-05T20:40:45.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }