{ "id": "62529", "key": "TIMOB-1897", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-06-05T20:16:47.000+0000", "created": "2011-04-15T03:04:58.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "emulator", "feature" ], "versions": [], "issuelinks": [ { "id": "20063", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "62528", "key": "TIMOB-1896", "fields": { "summary": "Android: Window width and height not respected", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "17532", "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-06-05T20:16:47.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": "When creating a modal window, with width and height specified, a full screen window is produced. This use case demonstrates the\r\nproblem:\r\n\r\n{code:title=app.js}\r\nvar winView1 = Ti.UI.createWindow({\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{code}\r\n\r\n{code:title=view1.js}\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{code}\r\n\r\nFurthermore, if borderRadius is used, an exception is produced.\r\n\r\nI'll raise that in another ticket, but the code above also demonstrates this if the createWindow borderRadius property is\r\nuncommented above.", "attachment": [], "flagged": false, "summary": "Window width and height not respected on Android", "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": "126928", "author": { "name": "z3nd", "key": "z3nd", "displayName": "z3nd", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hi,

\n

I have found a workaround to this bug. It still needs to be\nfixed though.

\n

Basically you have to specify the window's windowSoftInputMode\nproperty to any of the Ti.UI.Andorid.SOFT_INPUT_XXX operating\nmodes. Doing so will force the window into a heavyweight window.\nThis will bring your newly created window below the status bar\ninstead of behind it.

\n

Example:

\n

var win = Ti.UI.createWindow({

\n
\nexitOnClose: false,\nurl:'main/details.js',\nbackgroundImage:'../images/Background.png',\nwidth: stageWidth,\nheight: 'auto',\nwindowSoftInputMode: Ti.UI.Android.SOFT_INPUT_ADJUST_RESIZE,\n
\n

});

{html}", "updateAuthor": { "name": "z3nd", "key": "z3nd", "displayName": "z3nd", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:59.000+0000", "updated": "2011-04-15T03:04:59.000+0000" }, { "id": "156383", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "This is a blocker according to the severity definitions, as there is no workaround - ie there is no way to achieve a modal (fullscreen, navbarhidden etc) or blurred modal effect for a window with dimensions defined.\r\n\r\nNote: This is another of my tickets where Ralf marked himself as the reporter. Hence, restoring myself as reporter.\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-09T17:55:32.000+0000", "updated": "2011-06-09T18:04:46.000+0000" }, { "id": "215365", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Duplicate of timob-1896.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-21T11:54:50.000+0000", "updated": "2012-08-21T11:54:50.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }