{ "id": "165112", "key": "TIMOB-24258", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-12-23T14:46:09.000+0000", "created": "2016-12-23T11:04:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T21:48:57.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": [], "description": "http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.DocumentViewer-property-height\r\n\r\n1.Create a test project.\r\n2.Add Titanium.UI.iOS.DocumentViewer under Ti.UI.createTabGroup\r\n3. Set Titanium.UI.iOS.DocumentViewer height : '50%'\r\n4. Bulid it on iOS\r\n5. DocumentViewer open pdf on full windowds. \r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\r\ntitle : 'one',\r\n\r\nbackgroundColor : '#fff'\r\n\r\n});\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\r\ntitle : 'one',\r\n\r\nwindow : win1\r\n\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\r\ntitle : 'two',\r\n\r\nbackgroundColor : '#fff',\r\n\r\n});\r\n\r\nvar docViewer = Ti.UI.iOS.createDocumentViewer({\r\n\r\nurl : 'BIO DATA.pdf',\r\n\r\nheight : '50%',\r\n\r\nwidth : '50%'\r\n\r\n});\r\n\r\nwin2.add(docViewer);\r\n\r\nvar tab2 = Ti.UI.createTab({\r\n\r\ntitle : 'two',\r\n\r\nwindow : win2\r\n\r\n});\r\n\r\ntab2.addEventListener('selected', function(e) {\r\n\r\ndocViewer.show({animated : true});\r\n\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\n\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Titanium.UI.iOS.DocumentViewer height properties not working under Ti.UI.createTabGroup", "creator": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "subtasks": [], "reporter": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "environment": "Appcelerator Command-Line Interface, version 6.1.0\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.4.4\r\n npm Version = 2.15.1\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.8\r\n Core Package = 6.1.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.11\r\n node-appc Version = 0.2.39\r\niOS 10", "comment": { "comments": [ { "id": "403844", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The document viewer should be open modally using the {{show}} properly. Adding it as a child view is not recommended. If done anyway, use a wrapper view to control the height.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-23T14:46:09.000+0000", "updated": "2016-12-23T14:46:09.000+0000" }, { "id": "414005", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T21:48:57.000+0000", "updated": "2017-03-20T21:48:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }