{ "id": "62528", "key": "TIMOB-1896", "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": "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": "2017-08-16T01:21:17.000+0000", "created": "2011-04-15T03:04:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20063", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "62529", "key": "TIMOB-1897", "fields": { "summary": "Window width and height not respected on Android", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "17533", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92294", "key": "TIMOB-9226", "fields": { "summary": "Android: Review composite layout feature requests", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-16T01:21:17.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": "{html}

var winView1 = Ti.UI.createWindow({

\r\n
\r\n    backgroundColor:'#b1b1bd',\r\n//  borderRadius:5,\r\n    url:\"view1.js\",\r\n    modal: true,\r\n//  modal:false,\r\n    title: \"View1\",\r\n    width: 280,\r\n    height: 300\r\n});\r\nwinView1.open();\r\n
\r\n
\r\n

view1.js

\r\n
\r\nvar win = Ti.UI.currentWindow;\r\nvar viewView1 = Ti.UI.createView({\r\n    backgroundColor: '#ffb1bd',\r\n    borderRadius:10,\r\n    top:10,\r\n    width:280,\r\n    height:280\r\n});\r\nwin.add(viewView1);\r\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Window width and height not respected", "creator": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "126927", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning to Don for triage.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:58.000+0000", "updated": "2011-04-15T03:04:58.000+0000" }, { "id": "215361", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, issue still valid. \r\n", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-21T11:42:08.000+0000", "updated": "2012-08-21T11:42:08.000+0000" }, { "id": "259456", "author": { "name": "ethraza", "key": "ethraza", "displayName": "Allan Brazute", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "On sdk 3.1, issue still valid.\r\n\r\nI believe that modal windows shoud respect width/height or at least margin.", "updateAuthor": { "name": "ethraza", "key": "ethraza", "displayName": "Allan Brazute", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-06-26T03:40:07.000+0000", "updated": "2013-06-26T03:42:58.000+0000" }, { "id": "290788", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with the latest master and it seems working. Where is the margin defined in the sample code?\nHere is the code I tried\n\n var winView1 = Ti.UI.createWindow({ backgroundColor:'#b1b1bd', modal: true, title: \"View1\", width: 280, height: 300 });\n\twinView1.open();\n\tvar viewView1 = Ti.UI.createView({ backgroundColor: 'red', borderRadius:10, top:10, width:80, height:280 });\n\twinView1.add(viewView1);\n\nSee the attached image", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-01T10:06:25.000+0000", "updated": "2014-02-01T10:06:25.000+0000" }, { "id": "426749", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is no longer occurring with the following environment;\r\nStudio 4.9.1.201707200100\r\nTi SDK 6.1.2 GA\r\nAppc CLI 6.2.3\r\nTi CLI 5.0.14\r\nAlloy 1.9.13\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-16T01:21:17.000+0000", "updated": "2017-08-16T01:21:17.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }