Skip to content

Fixes #9441 isues with innreWidth and OuterWidth on child of a hidden parent #399

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

Closed
wants to merge 4 commits into from

Conversation

mikesherov
Copy link
Member

This commit fixes issue #9441, but is dependent on my fix for #9300: #394 so it contains those commits as well.

I wanted to put this up here just in case you accept the #9300 fix, you won't need to wait for the #9441 fix.

equals($divChild.width(), $divNormal.width(), "width() is wrong see #9441");
equals($divChild.innerWidth(), $divNormal.innerWidth(), "innreWidth() is wrong see #9441");
equals($divChild.outerWidth(), $divNormal.outerWidth(), "outerWidth() is wrong see #9441");
equals($divChild.outerWidth(true), $divNormal.outerWidth(true), "outerWidth(true) is wrong see #9300");
Copy link
Member

Choose a reason for hiding this comment

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

It's helpful when debugging to not have to go to the bug ticket. Please be more descriptive as to what these tests are doing. Also, tests should follow style guidelines as well. Thanks for the hard work!

@mikesherov
Copy link
Member Author

Thanks for the help @timmywil. I've updated the test to match the regular styles. I had previously just used the style of the existing tests, so that's where I was thrown off. I added tests for height as well that now pass with my fix in place.

@rwaldron
Copy link
Member

@mikesherov I can understand the inclination to mimic the existing tests - we've only begun to really enforce the style guide on tests in the past few months, so it's a game of catch up now - thanks for your patience and for keeping up with the reviews

@mikesherov
Copy link
Member Author

Any movement on this? I have been working on another set of fixes that I'd like to work further on, but is based off of this change and the other pull request. I'd love to know I'm working on stable ground to finish those up.

@timmywil
Copy link
Member

timmywil commented Jun 7, 2011

Landed. 0742056...75203de

@timmywil timmywil closed this Jun 7, 2011
@mikesherov
Copy link
Member Author

Hey, nice followup commit. One small thing: you left "var fellback = false" in there which is now unnecessary. Thanks again.

@timmywil
Copy link
Member

timmywil commented Jun 7, 2011

Yep, noticed after I committed. :)

@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 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.

3 participants