react-custom-scrollbars-2
react-custom-scrollbars-2 copied to clipboard
Custom scroll does not appear inside iframe
I load my application inside iframe. But iframe has display:none from the begging while my application is loading and then switch to display:block. In this span of time custom scroll tries to show up but (as I think) gets height of container is 0, (due to iframe has display:none). How can I solve this problem without changing external iframe styles just inside custom scroll component? I expect to use some "forceRerender" method to make CustomScroll recalculate or update container height is it possible?
For others that end up here, see https://github.com/RobPethick/react-custom-scrollbars-2/issues/34#issuecomment-1491858274 for possible workaround