{"action":"closed","issue":{"url":"https://api.github.com/repos/winjs/winjs/issues/1612","repository_url":"https://api.github.com/repos/winjs/winjs","labels_url":"https://api.github.com/repos/winjs/winjs/issues/1612/labels{/name}","comments_url":"https://api.github.com/repos/winjs/winjs/issues/1612/comments","events_url":"https://api.github.com/repos/winjs/winjs/issues/1612/events","html_url":"https://github.com/winjs/winjs/issues/1612","id":141026278,"number":1612,"title":"WinJS 4.4.0 wrong AppBar position when switching the on-screen keybord","user":{"login":"mesju","id":15046852,"avatar_url":"https://avatars.githubusercontent.com/u/15046852?v=3","gravatar_id":"","url":"https://api.github.com/users/mesju","html_url":"https://github.com/mesju","followers_url":"https://api.github.com/users/mesju/followers","following_url":"https://api.github.com/users/mesju/following{/other_user}","gists_url":"https://api.github.com/users/mesju/gists{/gist_id}","starred_url":"https://api.github.com/users/mesju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesju/subscriptions","organizations_url":"https://api.github.com/users/mesju/orgs","repos_url":"https://api.github.com/users/mesju/repos","events_url":"https://api.github.com/users/mesju/events{/privacy}","received_events_url":"https://api.github.com/users/mesju/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/winjs/winjs/labels/.kind:%20codebug","name":".kind: codebug","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-15T16:25:11Z","updated_at":"2016-05-06T21:02:42Z","closed_at":"2016-05-06T21:02:42Z","body":"I noticed a problem with the AppBar when switching between the different types of on-screen keybords. On some point the AppBar is shown in the middle of the screen or other unusual positions. Here a screenshot:\r\n\r\nhttps://onedrive.live.com/redir?resid=141BD40B8366079C!27412&authkey=!ACGvMzuvID0prWA&v=3&ithint=photo%2cpng\r\n\r\nI fixed thr problem modifing the following method from\r\n\r\n        AppBar.prototype._handleHidingKeyboard = function () {\r\n            // Make sure AppBar has the correct offsets since it could have been displaced by the IHM.\r\n            this._adjustedOffsets = this._computeAdjustedOffsets();\r\n            this._commandingSurface.deferredDomUpate();\r\n        };\r\n\r\nto\r\n\r\n        AppBar.prototype._handleHidingKeyboard = function () {\r\n            // Make sure AppBar has the correct offsets since it could have been displaced by the IHM.\r\n            var _this = this;\r\n            var duration = keyboardInfo._animationShowLength + keyboardInfo._scrollTimeout;\r\n            Promise.timeout(duration).then(function () {\r\n                _this._adjustedOffsets = _this._computeAdjustedOffsets();\r\n                _this._commandingSurface.deferredDomUpate();\r\n            });\r\n        };\r\n\r\n\r\n"}}