{ "id": "172824", "key": "TIMOB-26698", "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": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-26T13:29:14.000+0000", "created": "2019-01-07T23:36:39.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "TabGroup", "android", "engSchedule", "landscape", "portrait", "regression", "tabs" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2019-03-26T13:29:14.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": "*Summary:*\r\nOn Android, tabs are supposed to be sized as follows depending on the orientation...\r\n* Portrait: Stretched horizontally to fill the window.\r\n* Landscape: Sized to just fit the tab text.\r\n\r\nWhen launching a {{TabGroup}} in \"landscape\" orientation, the tabs are sized correctly. However, when rotating to \"portrait\" afterwards, the tabs won't resize to fill the window. They are still sized to fit the tab text which is not the native behavior.\r\n\r\nNote that this is not an issue when launching a {{TabGroup}} in \"portrait\" form. The tabs resize correctly when rotating to landscape and back to portrait. This is only an issue when launching in \"landscape\". This is also a regression as of Titanium 8.0.0 and was not an issue in prior Titanium versions.\r\n\r\n*Steps to reproduce:*\r\n# Set up the project's \"app.js\" with the below code.\r\n# Hold the Android device landscape.\r\n# Build and run the app on the device while held landscape.\r\n# Rotate to portrait.\r\n# Notice that the top tabs do not fill the window horizontally when portrait.\r\n\r\n{code:javascript}\r\nfunction createTab(title) {\r\n\tvar window = Ti.UI.createWindow({ title: title });\r\n\twindow.add(Ti.UI.createLabel({ text: title + \" View\" }));\r\n\tvar tab = Ti.UI.createTab({\r\n\t\ttitle: title,\r\n\t\twindow: window,\r\n\t});\r\n\treturn tab;\r\n}\r\n\r\nvar tabGroup = Ti.UI.createTabGroup({\r\n\ttabs: [createTab(\"Tab 1\"), createTab(\"Tab 2\")],\r\n});\r\ntabGroup.open();\r\n{code}\r\n\r\n*Result:*\r\n !TabGroup-landscape-good.png|thumbnail! !TabGroup-portrait-bad.png|thumbnail! \r\n\r\n*Expected Result:*\r\n !TabGroup-landscape-good.png|thumbnail! !TabGroup-portrait-good.png|thumbnail! \r\n", "attachment": [ { "id": "66058", "filename": "TabGroup-landscape-good.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-07T23:30:45.000+0000", "size": 48403, "mimeType": "image/png" }, { "id": "66057", "filename": "TabGroup-portrait-bad.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-07T23:30:45.000+0000", "size": 45201, "mimeType": "image/png" }, { "id": "66056", "filename": "TabGroup-portrait-good.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-07T23:30:45.000+0000", "size": 44155, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Launching TabGroup in landscape and then rotating to portrait won't resize tabs as of 8.0.0", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "445930", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10687", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2019-02-08T13:46:15.000+0000", "updated": "2019-02-08T13:46:15.000+0000" }, { "id": "446370", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Waiting on Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-27T19:49:58.000+0000", "updated": "2019-02-27T19:49:58.000+0000" }, { "id": "447125", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master, cherry-picked to 8_0_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-03-25T17:02:51.000+0000", "updated": "2019-03-25T17:02:51.000+0000" }, { "id": "447157", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in SDK version {{8.0.1.v20190325125116}} and SDK Version {{8.1.0.v20190325115012}}\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10687", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-26T13:29:05.000+0000", "updated": "2019-03-26T13:29:05.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }