{"action":"closed","issue":{"url":"https://api.github.com/repos/winjs/winjs/issues/1623","repository_url":"https://api.github.com/repos/winjs/winjs","labels_url":"https://api.github.com/repos/winjs/winjs/issues/1623/labels{/name}","comments_url":"https://api.github.com/repos/winjs/winjs/issues/1623/comments","events_url":"https://api.github.com/repos/winjs/winjs/issues/1623/events","html_url":"https://github.com/winjs/winjs/issues/1623","id":150095948,"number":1623,"title":"Error SCRIPT5007 when navigating away from hub","user":{"login":"jackhand","id":2715491,"avatar_url":"https://avatars.githubusercontent.com/u/2715491?v=3","gravatar_id":"","url":"https://api.github.com/users/jackhand","html_url":"https://github.com/jackhand","followers_url":"https://api.github.com/users/jackhand/followers","following_url":"https://api.github.com/users/jackhand/following{/other_user}","gists_url":"https://api.github.com/users/jackhand/gists{/gist_id}","starred_url":"https://api.github.com/users/jackhand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackhand/subscriptions","organizations_url":"https://api.github.com/users/jackhand/orgs","repos_url":"https://api.github.com/users/jackhand/repos","events_url":"https://api.github.com/users/jackhand/events{/privacy}","received_events_url":"https://api.github.com/users/jackhand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/winjs/winjs/labels/resolution:%20duplicate","name":"resolution: duplicate","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T14:45:14Z","updated_at":"2016-04-22T22:09:44Z","closed_at":"2016-04-22T22:09:44Z","body":"I am getting the following error when I sometimes navigate away from my main hub page:\r\n\r\n**SCRIPT5007: Unhandled exception at line 41342, column 21 in ms-appx-web://4ea57891-cb2a-4784-ac8b-0d09ca742214/lib/winjs-4.4.0/js/ui.js\r\n0x800a138f - JavaScript runtime error: Unable to get property 'top' of undefined or null reference**\r\n\r\nThis happens in version 4.4.0 of WinJS, but not 4.0.1, so for the time being I have reverted to using the older version.\r\n\r\nThe error happens on line 41342 of the _checkScrollPosition() method where the code reads the following:\r\n**if (this._currentPosition.top < 0) {**\r\n\r\n\r\nOne instance where this happens is when the user enters a search item in the search textfield of my app's hub page using the onscreen keyboard, clicks enter, and then the app attempts to go to the search results page but instead the above error happens. It is possible it is happening because the page is resizing (due to the hiding of the onscreen keyboard) and ui.js is not handling something correctly.\r\n"}}