guides
guides copied to clipboard
Horizontal Guide Not Rendering Properly
Environments
- Framework name:
react - Framework version:
17.0.2 - Component name:
@scena/react-guides - Component version:
0.16.0
Description
After upgrading from @scena/react-guides version 0.14.0 --> 0.16.0, my horizontal ruler stopped rendering/loading properly:

When I manually trigger topRulerEl.current.resize();, the horizontal ruler then renders properly and is interactive again:

@joncursi
There is a possibility that the css will be mounted before loading. That's size 0
In that case, you must finally call resize() after mounting.
This appears to be fixed in the latest release of the library, thank you!