{ "id": "159324", "key": "AC-3462", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2016-04-20T15:49:28.000+0000", "created": "2016-04-05T21:01:08.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-20T15:49:28.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": "With {{tab.iconInsets}} set, tap a tab and its icon shrinks vertically with each tap.\r\n\r\nThis can be demonstrated with a basic, new TiClassic app, code below. See the attached graphic after a couple of taps on the first tab.\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle: 'Tab 1',\r\n\tbackgroundColor: '#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({\r\n\ticon: 'KS_nav_views.png',\r\n\ticonInsets: {\r\n\t\ttop: 6\r\n\t},\r\n\twindow: win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor: '#999',\r\n\ttext: 'I am Window 1',\r\n\tfont: {\r\n\t\tfontSize: 20,\r\n\t\tfontFamily: 'Helvetica Neue'\r\n\t},\r\n\ttextAlign: 'center',\r\n\twidth: 'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({\r\n\ttitle: 'Tab 2',\r\n\tbackgroundColor: '#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({\r\n\ticon: 'KS_nav_ui.png',\r\n\ticonInsets: {\r\n\t\ttop: 6\r\n\t},\r\n\twindow: win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor: '#999',\r\n\ttext: 'I am Window 2',\r\n\tfont: {\r\n\t\tfontSize: 20,\r\n\t\tfontFamily: 'Helvetica Neue'\r\n\t},\r\n\ttextAlign: 'center',\r\n\twidth: 'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}", "attachment": [ { "id": "58813", "filename": "Simulator Screen Shot Apr 5, 2016, 4.57.16 PM.png", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2016-04-05T21:00:20.000+0000", "size": 10233, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: iconInsets - click tab and icon shrinks vertically", "creator": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "environment": "SDK 5.2.0.GA, CLI 5.0.5", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }