{ "id": "130175", "key": "TIMOB-16933", "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": "16096", "description": "2014 Sprint 09", "name": "2014 Sprint 09", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "16098", "description": "2014 Sprint 09 Tooling", "name": "2014 Sprint 09 Tooling", "archived": true, "released": true, "releaseDate": "2014-05-08" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-05-10T07:35:02.000+0000", "created": "2014-05-08T18:23:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-03T21:32: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": "13719", "name": "Windows Hybrid", "description": "Windows Hybrid platform" } ], "description": null, "attachment": [], "flagged": false, "summary": "CSS/Javascript not rendering properly", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jspain", "key": "jspain", "displayName": "Jamil Spain", "active": false, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "304078", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I need more information. I need a test case that proves that this bug is not just a problem with the way the application was designed.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-08T19:00:09.000+0000", "updated": "2014-05-08T19:00:09.000+0000" }, { "id": "304302", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is a non-issue as far as Titanium is concerned. They are putting HTML into a native WP8 WebBrowser object and the content does not have a meta viewport tag, thus there's no initial scale and the device zooms in on the content.\r\n\r\nThey can fix their app by detecting if the HTML content has a meta viewport tag and if not add it. Here's example code:\r\n\r\n{code}\r\n// viewportify\r\nif (html) {\r\n\thtml = String(html);\r\n\tvar metaTags = html.match(/ ]+)\\s*)?)*)\\/?\\s*>/g),\r\n\t\tviewportExists = false,\r\n\t\tviewport = '',\r\n\t\ti, j, k, l, attrs;\r\n\tif (metaTags) {\r\n\t\tfor (i = 0, l = metaTags.length; i < l; i++) {\r\n\t\t\tattrs = metaTags[i].match(/(?:\\w|-)+\\b\\s*(?:=\\s*(?:\"[^\"]*\"|'[^']*'|[^\"'<> ]+))?/g);\r\n\t\t\tif (attrs) {\r\n\t\t\t\tfor (j = 0, k = attrs.length; j < k; j++) {\r\n\t\t\t\t\tif (/name\\s*=\\s*(?:\"viewport\"|'viewport')/.test(attrs[j])) {\r\n\t\t\t\t\t\tviewportExists = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif (!viewportExists) {\r\n\t\tvar p = html.indexOf('');\r\n\t\tif (p != -1) {\r\n\t\t\thtml = html.substring(0, p - 1) + viewport + html.substring(p);\r\n\t\t} else {\r\n\t\t\tp = html.indexOf('' + viewport + '' + html.substring(p);\r\n\t\t\t} else {\r\n\t\t\t\t// no body, skip\r\n\t\t\t}\r\n\t\t}\r\n\t\talert('Added viewport meta tag!\\n\\n' + html);\r\n\t}\r\n}\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-10T07:35:02.000+0000", "updated": "2014-05-10T07:35:02.000+0000" }, { "id": "408926", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T21:32:03.000+0000", "updated": "2017-03-03T21:32:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }