Skip to content
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

Bugfix: evaluate pixel height as integers to avoid browser-specific s… #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seanaery
Copy link

…ubpixel calculation differences.

See projectblacklight/arclight#1027 for examples where Firefox would evaluate
truncate.height() as 61.2, truncate_height as 61.1999... and thus not expand.

Also noting that the original == comparison operator in the line in question was changed to <= in ArcLight in this Oct 3, 2019 commit:
projectblacklight/arclight@406379f

…ubpixel calculation differences.

See projectblacklight/arclight#1027 for examples where Firefox would evaluate
truncate.height() as 61.2, truncate_height as 61.1999... and thus not expand.
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