Skip to content

PivotView Virtualscroll was throwing an error due tu css property syntax expectation on Firefox #82

New issue

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

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

Already on GitHub? Sign in to your account

Conversation

florent-izypay
Copy link

onHorizondalScroll method of controls/pivotview/src/pivotview/actions/virtualscroll.ts was expecting a second value in transform: translate() to compute updated offsets.

However Firefox is shortening translate(<x>, <y>) to translate(<x>) if y=0.
See https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate for reference.

This PR tests if the y value is present before appending the y part parsed from style to new translate value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant