guides icon indicating copy to clipboard operation
guides copied to clipboard

Horizontal Guide Not Rendering Properly

Open joncursi opened this issue 4 years ago • 1 comments

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:

Screen Shot 2021-06-15 at 9 30 15 PM

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

Screen Shot 2021-06-15 at 9 31 31 PM

joncursi avatar Jun 16 '21 01:06 joncursi

@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.

daybrush avatar Jan 03 '22 17:01 daybrush

This appears to be fixed in the latest release of the library, thank you!

joncursi avatar Apr 05 '24 21:04 joncursi