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

fixes .css() #13956 #1298

Closed
wants to merge 11 commits into from
Closed

fixes .css() #13956 #1298

wants to merge 11 commits into from

Conversation

Copy link

@b1lly b1lly commented Jun 26, 2013

made the changes, reverted the guy, created a branch

@b1lly
Copy link
Author

@b1lly b1lly commented Jul 1, 2013

Ping!

if ( prop === "bottom" ) {
return elemPosition.top + parseFloat( elStyles.height ) + "px";
} else if ( prop === "right" ) {
return elemPosition.left + parseFloat( elStyles.width ) + "px";
Copy link
Member

@gibson042 gibson042 Jul 1, 2013

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 )?

Copy link
Member

@mikesherov mikesherov Jul 8, 2013

Choose a reason for hiding this comment

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

No, unfortunately.

@b1lly
Copy link
Author

@b1lly b1lly commented Aug 24, 2013

Is this still open? am I supposed to pull down gibsons change and resubmit?

@gibson042
Copy link

@gibson042 gibson042 commented Aug 26, 2013

@b1lly You shouldn't need to resubmit; just pull my changes and rebase onto master so grunt completes successfully. After that, I think it's ready to land.

@mgol
Copy link

@mgol mgol commented Aug 26, 2013

@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.

@dmethvin
Copy link

@dmethvin dmethvin commented Aug 26, 2013

I didn't but it did seem a bit more compressible per the discussion @mzgol and I had.

@markelog
Copy link

@markelog markelog commented Dec 3, 2014

It seems this PR is pretty old and stale, closing

@markelog markelog closed this Dec 3, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants