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
fixes .css() #13956 #1298
fixes .css() #13956 #1298
Conversation
|
Ping! |
| if ( prop === "bottom" ) { | ||
| return elemPosition.top + parseFloat( elStyles.height ) + "px"; | ||
| } else if ( prop === "right" ) { | ||
| return elemPosition.left + parseFloat( elStyles.width ) + "px"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to trim off 11 bytes (gibson042/jquery@b1lly:13956...b1lly_13956), but it's still +33. @mikesherov, can you think of a better way to express parseFloat( getStyles( elem ).height )?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, unfortunately.
|
Is this still open? am I supposed to pull down gibsons change and resubmit? |
|
@b1lly You shouldn't need to resubmit; just pull my changes and rebase onto master so |
|
@b1lly @gibson042 Well, @dmethvin wanted to compress it further, you can notice some duplication between lines 518 & 520 which might be (probably) compressed if iterating not on an array but on sth like: {
width: [ "left", "right" ],
height: [ "top", "bottom" ]
}Not sure if he found time to dive into that, though. |
|
I didn't but it did seem a bit more compressible per the discussion @mzgol and I had. |
|
It seems this PR is pretty old and stale, closing |
made the changes, reverted the guy, created a branch