{"action":"created","issue":{"url":"https://api.github.com/repos/winjs/winjs/issues/1373","labels_url":"https://api.github.com/repos/winjs/winjs/issues/1373/labels{/name}","comments_url":"https://api.github.com/repos/winjs/winjs/issues/1373/comments","events_url":"https://api.github.com/repos/winjs/winjs/issues/1373/events","html_url":"https://github.com/winjs/winjs/issues/1373","id":101691432,"number":1373,"title":"Textarea issues with flyouts in store app","user":{"login":"mfosker","id":1719698,"avatar_url":"https://avatars.githubusercontent.com/u/1719698?v=3","gravatar_id":"","url":"https://api.github.com/users/mfosker","html_url":"https://github.com/mfosker","followers_url":"https://api.github.com/users/mfosker/followers","following_url":"https://api.github.com/users/mfosker/following{/other_user}","gists_url":"https://api.github.com/users/mfosker/gists{/gist_id}","starred_url":"https://api.github.com/users/mfosker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfosker/subscriptions","organizations_url":"https://api.github.com/users/mfosker/orgs","repos_url":"https://api.github.com/users/mfosker/repos","events_url":"https://api.github.com/users/mfosker/events{/privacy}","received_events_url":"https://api.github.com/users/mfosker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/winjs/winjs/labels/..pri:%201","name":"..pri: 1","color":"bfe5bf"},{"url":"https://api.github.com/repos/winjs/winjs/labels/.kind:%20codebug","name":".kind: codebug","color":"207de5"},{"url":"https://api.github.com/repos/winjs/winjs/labels/feature:%20flyout","name":"feature: flyout","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"AmazingJaze","id":6732159,"avatar_url":"https://avatars.githubusercontent.com/u/6732159?v=3","gravatar_id":"","url":"https://api.github.com/users/AmazingJaze","html_url":"https://github.com/AmazingJaze","followers_url":"https://api.github.com/users/AmazingJaze/followers","following_url":"https://api.github.com/users/AmazingJaze/following{/other_user}","gists_url":"https://api.github.com/users/AmazingJaze/gists{/gist_id}","starred_url":"https://api.github.com/users/AmazingJaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmazingJaze/subscriptions","organizations_url":"https://api.github.com/users/AmazingJaze/orgs","repos_url":"https://api.github.com/users/AmazingJaze/repos","events_url":"https://api.github.com/users/AmazingJaze/events{/privacy}","received_events_url":"https://api.github.com/users/AmazingJaze/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/winjs/winjs/milestones/18","html_url":"https://github.com/winjs/winjs/milestones/Future","labels_url":"https://api.github.com/repos/winjs/winjs/milestones/18/labels","id":1262049,"number":18,"title":"Future","description":"Unbooked future work","creator":{"login":"mikewjackson","id":7026399,"avatar_url":"https://avatars.githubusercontent.com/u/7026399?v=3","gravatar_id":"","url":"https://api.github.com/users/mikewjackson","html_url":"https://github.com/mikewjackson","followers_url":"https://api.github.com/users/mikewjackson/followers","following_url":"https://api.github.com/users/mikewjackson/following{/other_user}","gists_url":"https://api.github.com/users/mikewjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/mikewjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikewjackson/subscriptions","organizations_url":"https://api.github.com/users/mikewjackson/orgs","repos_url":"https://api.github.com/users/mikewjackson/repos","events_url":"https://api.github.com/users/mikewjackson/events{/privacy}","received_events_url":"https://api.github.com/users/mikewjackson/received_events","type":"User","site_admin":false},"open_issues":113,"closed_issues":0,"state":"open","created_at":"2015-08-19T06:51:11Z","updated_at":"2015-08-19T07:05:15Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-08-18T16:07:36Z","updated_at":"2015-08-19T11:13:34Z","closed_at":null,"body":"I have found a number of ways to crash an app using textarea in a page if there are also flyout controls present.\r\nThe error message is : Unable to get property 'top' of undefined or null reference in line 40938 of ui.js\r\n\r\nThe simplest app I can reproduce this in has a page containing a textarea and an empty flyout on a page that is loaded into a  `<div class=\"renderingPageControls-renderedControl\"></div>`\r\nusing `WinJS.UI.Pages.render`\r\n\r\nWhen on this page in the simulator or on a touch device, if I touch in the textarea and drag my finger up, the textarea starts to move towards to the top of the screen before then hitting the above exception.\r\nThe same steps with the flyout removed from the HTML do not result in a crash. The flyouts can be either in the page that contains the textarea, or in the default.html\r\n\r\nThe app has been set to use WinJS 4.1 by installing WinJS into my app in VS2013 via the package manager and then updating paths to the js and css files in default.html.\r\n\r\nI initially found a similar problem with a textarea in a page that is set to adjust it's height to the available vertical space. When focussing on the textarea too soon after showing it (Win 8.1) or any time after showing it (win 10) I would see the same error.\r\n\r\nI can attach a basic VS solution that exhibits this issue if it helps."},"comment":{"url":"https://api.github.com/repos/winjs/winjs/issues/comments/132549679","html_url":"https://github.com/winjs/winjs/issues/1373#issuecomment-132549679","issue_url":"https://api.github.com/repos/winjs/winjs/issues/1373","id":132549679,"user":{"login":"mfosker","id":1719698,"avatar_url":"https://avatars.githubusercontent.com/u/1719698?v=3","gravatar_id":"","url":"https://api.github.com/users/mfosker","html_url":"https://github.com/mfosker","followers_url":"https://api.github.com/users/mfosker/followers","following_url":"https://api.github.com/users/mfosker/following{/other_user}","gists_url":"https://api.github.com/users/mfosker/gists{/gist_id}","starred_url":"https://api.github.com/users/mfosker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfosker/subscriptions","organizations_url":"https://api.github.com/users/mfosker/orgs","repos_url":"https://api.github.com/users/mfosker/repos","events_url":"https://api.github.com/users/mfosker/events{/privacy}","received_events_url":"https://api.github.com/users/mfosker/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T11:13:34Z","updated_at":"2015-08-19T11:13:34Z","body":"I have found a similar issue on a page without a textarea.\r\nThis page contains a listview with draggable items and also has a flyout. Dragging an item from the listview to the edge of the screen results in the same exception as above.\r\nRemoving all flyouts from the DOM appears to avoid the issue.\r\n\r\n\r\n"}}