{
"id": "135353",
"key": "TIMOB-17563",
"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": "11",
"description": "Is not a bug in our product",
"name": "Not Our Bug"
},
"resolutiondate": "2014-09-04T17:21:01.000+0000",
"created": "2014-08-26T21:41:50.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [
"SupportTeam"
],
"versions": [
{
"id": "15422",
"description": "Release 3.3.0",
"name": "Release 3.3.0",
"archived": false,
"released": true,
"releaseDate": "2014-07-16"
}
],
"issuelinks": [
{
"id": "41137",
"type": {
"id": "10002",
"name": "Duplicate",
"inward": "is duplicated by",
"outward": "duplicates"
},
"inwardIssue": {
"id": "135542",
"key": "TIMOB-17571",
"fields": {
"summary": "Hiding the ActionBar using a custom theme misforms app when also using a 9-patch splash screen",
"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": "40871",
"type": {
"id": "10003",
"name": "Relates",
"inward": "relates to",
"outward": "relates to"
},
"outwardIssue": {
"id": "106420",
"key": "TIDOC-1319",
"fields": {
"summary": "Android: Using nine-patch image for splash screen causes window to be squished in one corner",
"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
}
}
}
}
],
"assignee": {
"name": "pwang",
"key": "pwang",
"displayName": "Ping Wang",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2017-03-10T21:19: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": "h4. Problem Description\r\nThere is a strange behavior when using custom theme, basically if you don't use this one:\r\n\r\n{code}\r\n - @drawable/splash
\r\n{code}\r\n\r\nit will fail (it shows a smaller screen/view in android) - Check Image1.png \r\n\r\nIf you remove it, it will work just fine. - Check Image2.png\r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project (classic titanium)\r\n2. Add this app.js:\r\n{code}\r\n\r\n\t\tvar mainView = Ti.UI.createView({\r\n\t\t\tlayout: 'vertical',\r\n\t\t\theight: Ti.UI.FILL\r\n\t\t});\r\n\r\n\t\tvar textField = Ti.UI.createTextField({\r\n top: 10,\r\n\t\t\tautocapitalization: Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,\r\n\t\t\tautocorrect: false\r\n\t\t});\r\n\r\n mainView.add(textField);\r\n\r\n\t\tvar validateButton = Ti.UI.createButton({\r\n top: 15,\r\n left: 8,\r\n right: 8,\r\n title: 'Validate content'\r\n\t\t});\r\n\t\tmainView.add(validateButton);\r\n\r\n\t\tvalidateButton.addEventListener(\"click\", function () {\r\n\t\t if (validateTextFieldCommand) {\r\n\t\t validateTextFieldCommand(textField.value);\r\n\t\t }\r\n\t\t});\r\n\r\n\t\tvar win = Ti.UI.createWindow({backgroundColor:'blue'});\r\n\t\twin.add(mainView);\r\n\t\twin.open();\r\n{code}\r\n\r\nAdd this to your mytheme.xml (inside platform->android->res->values):\r\n\r\n{code}\r\n\r\n\r\n \r\n\r\n \r\n\r\n{code}\r\n\r\nSpecify in tiapp.xml which theme you going to use (excerpt): \r\n\r\n{code}\r\n \r\n \r\n\r\n\r\n\r\n\r\n{code}\r\n3. Run it into device. \r\n\r\nh4. Actual results \r\nif you enable the windowBackground in the custom theme, the views will be smaller. \r\n\r\nh4. Extra info\r\nI attached a full testcase in the form of a project with the name viewport-3-3-0-reduced.zip. \r\n",
"attachment": [
{
"id": "50794",
"filename": "Image1.png",
"author": {
"name": "mpmiranda",
"key": "mpmiranda",
"displayName": "Mauro Parra-Miranda",
"active": true,
"timeZone": "America/Mexico_City"
},
"created": "2014-08-26T21:41:50.000+0000",
"size": 348661,
"mimeType": "image/png"
},
{
"id": "50795",
"filename": "Image2.png",
"author": {
"name": "mpmiranda",
"key": "mpmiranda",
"displayName": "Mauro Parra-Miranda",
"active": true,
"timeZone": "America/Mexico_City"
},
"created": "2014-08-26T21:41:50.000+0000",
"size": 29367,
"mimeType": "image/png"
}
],
"flagged": false,
"summary": "Android: Image incorrectly sized when using windowBackground with custom theme ",
"creator": {
"name": "mpmiranda",
"key": "mpmiranda",
"displayName": "Mauro Parra-Miranda",
"active": true,
"timeZone": "America/Mexico_City"
},
"subtasks": [],
"reporter": {
"name": "mpmiranda",
"key": "mpmiranda",
"displayName": "Mauro Parra-Miranda",
"active": true,
"timeZone": "America/Mexico_City"
},
"environment": "Mobile SDK 3.3.0.GA\r\nMoto X\r\nAndroid 4.4.2",
"closedSprints": [
{
"id": 199,
"state": "closed",
"name": "2014 Sprint 18 SDK",
"startDate": "2014-09-02T22:56:57.421Z",
"endDate": "2014-09-13T00:00:00.000Z",
"completeDate": "2014-09-15T20:08:19.146Z",
"originBoardId": 114
}
],
"comment": {
"comments": [
{
"id": "321853",
"author": {
"name": "pwang",
"key": "pwang",
"displayName": "Ping Wang",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updateAuthor": {
"name": "pwang",
"key": "pwang",
"displayName": "Ping Wang",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2014-09-04T17:19:29.000+0000",
"updated": "2014-09-04T17:19:29.000+0000"
},
{
"id": "324246",
"author": {
"name": "ingo",
"key": "ingo",
"displayName": "Ingo Muschenetz",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Making public again. Removed attachment (as it's not truly necessary)",
"updateAuthor": {
"name": "ingo",
"key": "ingo",
"displayName": "Ingo Muschenetz",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2014-09-17T15:47:42.000+0000",
"updated": "2014-09-17T15:47:42.000+0000"
},
{
"id": "411361",
"author": {
"name": "lmorris",
"key": "lmorris",
"displayName": "Lee Morris",
"active": false,
"timeZone": "America/Los_Angeles"
},
"body": "Closing ticket as it is not our bug.",
"updateAuthor": {
"name": "lmorris",
"key": "lmorris",
"displayName": "Lee Morris",
"active": false,
"timeZone": "America/Los_Angeles"
},
"created": "2017-03-10T21:19:17.000+0000",
"updated": "2017-03-10T21:19:17.000+0000"
}
],
"maxResults": 5,
"total": 5,
"startAt": 0
}
}
}