{ "id": "89196", "key": "TIMOB-8433", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-17T10:14:52.000+0000", "created": "2012-03-29T17:12:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:35:03.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "\r\nCurrently, iOS image views do not obey explicit sizing instructions for percentage measurements (and possibly others). For example, when we have an image of 300 x 419 at \"50%\" embedded in a parent view of 200, we do not see the behavior of the image view which would be expected (it measures 100 x 100, with image stretching).\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar parent = Ti.UI.createView({\r\n\twidth:200,\r\n\theight:200,\r\n\tbackgroundColor:'red'\r\n});\r\nvar child = Ti.UI.createView({\r\n\twidth:\"50%\",\r\n\theight:\"50%\",\r\n\tbackgroundColor:'blue'\r\n});\r\nvar image = Ti.UI.createImageView({\r\n\twidth:\"50%\",\r\n\theight:\"50%\",\r\n\timage:'images/corkboard.jpg'\r\n});\r\n\r\nparent.add(child);\r\nparent.add(image);\r\nwin.add(parent);\r\nwin.open();\r\n{code}\r\n\r\nh4. Pass\r\n----\r\n\r\nThe blue view should not be visible, since it has the same dimensions as the image view, which should overlay it.", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.ImageView does not follow explicit sizing", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "247913", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-17T10:14:52.000+0000", "updated": "2013-04-17T10:14:52.000+0000" }, { "id": "413558", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:35:03.000+0000", "updated": "2017-03-17T18:35:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }