Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Infinite Ruler Crashes Firefox when wrapped in parent and given width #17

Open
hdrabs opened this issue Apr 26, 2021 · 1 comment
Open
Labels
bug Something isn't working

Comments

@hdrabs
Copy link

hdrabs commented Apr 26, 2021

Environments

  • Framework name: ReactJS
  • Framework version: 17.0.1
  • Component name: @scena/react-ruler
  • Component version: ^0.7.2
  • Not working on browser: Firefox

Description

I am using react ruler with infinite scrolling to 24000px by 24000px of page. Using both vertical and horizontal rulers with sticky position on parent element. It is working great and as expected on all browsers but firefox. Firefox gives 2 errors:

  • How it is told in the demo creating the resize function. Firefox fails to recognise that and thorws ruler.resize is not a function
  • I removed the function and still works properly on other browsers and then throws error on Ruler.tsx:111 and just crashes.

What I tried

  • I tried to remove the height and width of the parent element for the ruler and the horizontal starts working but the width is just the width of the screen and not more even though the page is way more than that.
  • By any means I am unable to have a vertical scroll bar

Need help.

@daybrush
Copy link
Owner

daybrush commented Jun 4, 2021

@hdrabs

Do you have a demo address where I can test it?

@daybrush daybrush added the bug Something isn't working label Jun 4, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants