react-custom-scrollbars-2 icon indicating copy to clipboard operation
react-custom-scrollbars-2 copied to clipboard

Custom scroll does not appear inside iframe

Open alexaaaant opened this issue 2 years ago • 1 comments

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?

alexaaaant avatar Sep 05 '22 10:09 alexaaaant

For others that end up here, see https://github.com/RobPethick/react-custom-scrollbars-2/issues/34#issuecomment-1491858274 for possible workaround

d2r-app avatar Mar 31 '23 12:03 d2r-app