{"action":"opened","issue":{"url":"https://api.github.com/repos/ceolter/ag-grid/issues/1225","repository_url":"https://api.github.com/repos/ceolter/ag-grid","labels_url":"https://api.github.com/repos/ceolter/ag-grid/issues/1225/labels{/name}","comments_url":"https://api.github.com/repos/ceolter/ag-grid/issues/1225/comments","events_url":"https://api.github.com/repos/ceolter/ag-grid/issues/1225/events","html_url":"https://github.com/ceolter/ag-grid/issues/1225","id":185776971,"number":1225,"title":"forPrint option breaks ag-grid","user":{"login":"dlvx","id":7083238,"avatar_url":"https://avatars.githubusercontent.com/u/7083238?v=3","gravatar_id":"","url":"https://api.github.com/users/dlvx","html_url":"https://github.com/dlvx","followers_url":"https://api.github.com/users/dlvx/followers","following_url":"https://api.github.com/users/dlvx/following{/other_user}","gists_url":"https://api.github.com/users/dlvx/gists{/gist_id}","starred_url":"https://api.github.com/users/dlvx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlvx/subscriptions","organizations_url":"https://api.github.com/users/dlvx/orgs","repos_url":"https://api.github.com/users/dlvx/repos","events_url":"https://api.github.com/users/dlvx/events{/privacy}","received_events_url":"https://api.github.com/users/dlvx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T20:51:07Z","updated_at":"2016-10-27T20:51:07Z","closed_at":null,"body":"I´m doing this with React. Giving the forPrint option set to true. I´m having two different errors:\r\n\r\nThis one when having supressHorizontalScroll=\"true\"\r\n\r\n- gridPanel.js:144 Uncaught TypeError: Cannot read property 'style' of undefined\r\n\r\nSpecifically in this block of code:\r\n\r\n` if (this.gridOptionsWrapper.isSuppressHorizontalScroll()) {\r\n            this.eBodyViewport.style.overflowX = 'hidden';\r\n        }`\r\n\r\nThe other one (if I set supressHorizontalScroll to false) is this one:\r\n\r\n- gridPanel.js:243 Uncaught (in promise) TypeError: Cannot read property 'addEventListener' of undefined\r\n\r\nSpecifically in this line of code:\r\n\r\n`this.eBodyViewport.addEventListener('contextmenu', listener);`\r\n\r\nBoth end up in the grid not displaying at all.\r\n\r\nIs there other property I may be missing or is this something not supported for the ag grid React component?\r\n\r\nThanks"}}
{"actor":{"display_login":"dlvx"}}