Skip to content

Position: Handle decimal percentage offsets. Fixes #9076: percentage off... #912

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

Merged
merged 1 commit into from
Feb 12, 2013

Conversation

petersendidit
Copy link
Member

...set does not support decimal

@@ -18,7 +18,7 @@ var cachedScrollbarWidth,
round = Math.round,
rhorizontal = /left|center|right/,
rvertical = /top|center|bottom/,
roffset = /[\+\-]\d+%?/,
roffset = /[\+\-][\d.]+%?/,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really do a proper check with \d+(\.\d+)? and figure out how we want to handle invalid values.

@petersendidit petersendidit merged commit c958b21 into jquery:master Feb 12, 2013
@petersendidit petersendidit deleted the pos_9076 branch February 12, 2013 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants