{"action":"created","issue":{"url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/488","repository_url":"https://api.github.com/repos/bvaughn/react-virtualized","labels_url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/488/labels{/name}","comments_url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/488/comments","events_url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/488/events","html_url":"https://github.com/bvaughn/react-virtualized/issues/488","id":193031661,"number":488,"title":"Feature Request - Ability to bypass scroll checks","user":{"login":"DerFlatulator","id":1297597,"avatar_url":"https://avatars.githubusercontent.com/u/1297597?v=3","gravatar_id":"","url":"https://api.github.com/users/DerFlatulator","html_url":"https://github.com/DerFlatulator","followers_url":"https://api.github.com/users/DerFlatulator/followers","following_url":"https://api.github.com/users/DerFlatulator/following{/other_user}","gists_url":"https://api.github.com/users/DerFlatulator/gists{/gist_id}","starred_url":"https://api.github.com/users/DerFlatulator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DerFlatulator/subscriptions","organizations_url":"https://api.github.com/users/DerFlatulator/orgs","repos_url":"https://api.github.com/users/DerFlatulator/repos","events_url":"https://api.github.com/users/DerFlatulator/events{/privacy}","received_events_url":"https://api.github.com/users/DerFlatulator/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T04:26:15Z","updated_at":"2016-12-02T04:35:16Z","closed_at":"2016-12-02T04:29:17Z","body":"\r\n## What's your use case?\r\n\r\nWe are using a custom variant of [perfect-scrollbar](https://github.com/noraesae/perfect-scrollbar) where the scrollbars are rendered outside of the `.ReactVirtualized__Grid` element. It works great, but we are forced to override the overflow properties of the grid in a parent component's `componentDidUpdate`.\r\n\r\n```js\r\nelement.style.overflowX = element.style.overflowY = 'hidden';\r\n```\r\n\r\nI can imagine this thrashing causing a performance issue.\r\n\r\n## What interface do you have in mind?\r\n\r\nA prop on `List`/`Grid` called `externalScrollbars` of type `boolean`, defaulting to false that would bypass calculating scrollbar height/width, and always set the overflow X and Y properties to `'hidden'`.\r\n\r\nhttps://github.com/bvaughn/react-virtualized/blob/master/source/Grid/Grid.js#L533\r\n"},"comment":{"url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/comments/264371388","html_url":"https://github.com/bvaughn/react-virtualized/issues/488#issuecomment-264371388","issue_url":"https://api.github.com/repos/bvaughn/react-virtualized/issues/488","id":264371388,"user":{"login":"DerFlatulator","id":1297597,"avatar_url":"https://avatars.githubusercontent.com/u/1297597?v=3","gravatar_id":"","url":"https://api.github.com/users/DerFlatulator","html_url":"https://github.com/DerFlatulator","followers_url":"https://api.github.com/users/DerFlatulator/followers","following_url":"https://api.github.com/users/DerFlatulator/following{/other_user}","gists_url":"https://api.github.com/users/DerFlatulator/gists{/gist_id}","starred_url":"https://api.github.com/users/DerFlatulator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DerFlatulator/subscriptions","organizations_url":"https://api.github.com/users/DerFlatulator/orgs","repos_url":"https://api.github.com/users/DerFlatulator/repos","events_url":"https://api.github.com/users/DerFlatulator/events{/privacy}","received_events_url":"https://api.github.com/users/DerFlatulator/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T04:35:16Z","updated_at":"2016-12-02T04:35:16Z","body":"Turns out we tried almost exactly that, using `overflow: 'hidden'` instead of overflowX and Y.\r\n\r\nSetting the properties explicitly worked. Thanks."}}
{"actor":{"display_login":"DerFlatulator"}}