{"action":"created","issue":{"url":"https://api.github.com/repos/ViewDeck/ViewDeck/issues/524","repository_url":"https://api.github.com/repos/ViewDeck/ViewDeck","labels_url":"https://api.github.com/repos/ViewDeck/ViewDeck/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/ViewDeck/ViewDeck/issues/524/comments","events_url":"https://api.github.com/repos/ViewDeck/ViewDeck/issues/524/events","html_url":"https://github.com/ViewDeck/ViewDeck/issues/524","id":139543885,"number":524,"title":"Rotation on iPad doesn't work correctly for me from iOS 8 and greater.","user":{"login":"SergeyBulyno","id":1163330,"avatar_url":"https://avatars.githubusercontent.com/u/1163330?v=3","gravatar_id":"","url":"https://api.github.com/users/SergeyBulyno","html_url":"https://github.com/SergeyBulyno","followers_url":"https://api.github.com/users/SergeyBulyno/followers","following_url":"https://api.github.com/users/SergeyBulyno/following{/other_user}","gists_url":"https://api.github.com/users/SergeyBulyno/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyBulyno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyBulyno/subscriptions","organizations_url":"https://api.github.com/users/SergeyBulyno/orgs","repos_url":"https://api.github.com/users/SergeyBulyno/repos","events_url":"https://api.github.com/users/SergeyBulyno/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyBulyno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ViewDeck/ViewDeck/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ViewDeck/ViewDeck/milestones/9","html_url":"https://github.com/ViewDeck/ViewDeck/milestones/2.5.0","labels_url":"https://api.github.com/repos/ViewDeck/ViewDeck/milestones/9/labels","id":1667460,"number":9,"title":"2.5.0","description":"","creator":{"login":"michaelochs","id":1901926,"avatar_url":"https://avatars.githubusercontent.com/u/1901926?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelochs","html_url":"https://github.com/michaelochs","followers_url":"https://api.github.com/users/michaelochs/followers","following_url":"https://api.github.com/users/michaelochs/following{/other_user}","gists_url":"https://api.github.com/users/michaelochs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelochs/subscriptions","organizations_url":"https://api.github.com/users/michaelochs/orgs","repos_url":"https://api.github.com/users/michaelochs/repos","events_url":"https://api.github.com/users/michaelochs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelochs/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-03-27T10:39:57Z","updated_at":"2016-03-30T06:30:47Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-03-09T10:55:02Z","updated_at":"2016-03-30T16:45:33Z","closed_at":null,"body":"iPad. 2.2.11 and 2.4.1 versions.\r\n1) I launch my app in landscape open left controller (menu), it has correct width. \r\n2) Rotate device to portrait orientation and menu has 44 points width for iOS 8 and greater. Device with IOS 7 works correctly. This happen because arrangeViewsAfterRotation launch with same self.referenceBounds.size and _preRotationSize. _preRotationSize change in shouldAutorotate twice before and after rotation and then execute arrangeViewsAfterRotation method. By this reason self.referenceBounds.size  Equal  _preRotationSize.\r\n3) I try remove from shouldAutorotate:\r\n `  _preRotationSize = self.referenceBounds.size;\r\n    _preRotationCenterSize = self.centerView.bounds.size;\r\n    _willAppearShouldArrangeViewsAfterRotation = self.interfaceOrientation;\r\n`\r\n4) Add to willRotateToInterfaceOrientation\r\n `    if (_preRotationSize.width == 0) {\r\n        _preRotationSize = self.referenceBounds.size;\r\n        _preRotationCenterSize = self.centerView.bounds.size;\r\n        _preRotationIsLandscape = UIInterfaceOrientationIsLandscape(self.interfaceOrientation);\r\n\t\t_willAppearShouldArrangeViewsAfterRotation = self.interfaceOrientation;\r\n    }`\r\nAnd it works correctly for me in version 2.2.11.\r\nIn version 2.4.1 it works only if i open left menu (landscape) - close left menu - rotate (portrait) - open left menu. If I open left menu(landscape) - rotate(portrait)  left menu has 44 width then black view and centre controller with correct offset. \r\nMay be I not set and configure view deck correctly? Or bug still present ? "},"comment":{"url":"https://api.github.com/repos/ViewDeck/ViewDeck/issues/comments/203520261","html_url":"https://github.com/ViewDeck/ViewDeck/issues/524#issuecomment-203520261","issue_url":"https://api.github.com/repos/ViewDeck/ViewDeck/issues/524","id":203520261,"user":{"login":"michaelochs","id":1901926,"avatar_url":"https://avatars.githubusercontent.com/u/1901926?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelochs","html_url":"https://github.com/michaelochs","followers_url":"https://api.github.com/users/michaelochs/followers","following_url":"https://api.github.com/users/michaelochs/following{/other_user}","gists_url":"https://api.github.com/users/michaelochs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelochs/subscriptions","organizations_url":"https://api.github.com/users/michaelochs/orgs","repos_url":"https://api.github.com/users/michaelochs/repos","events_url":"https://api.github.com/users/michaelochs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelochs/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T16:45:33Z","updated_at":"2016-03-30T16:45:33Z","body":"@SergeyBulyno as a very first approach, can you have a look at https://github.com/ViewDeck/ViewDeck/commit/86928a33d6f819d9f083aaf1e1175e095d7b7746 and check if that fixes your issue? It's not tested at all yet, as my time today is pretty limited, but I wanted to give you something as soon as I have a first approach."}}