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

use scrollHeight & scrollWidth to avoid getting the wrong size of the content #36

Merged
merged 1 commit into from Jun 14, 2013

Conversation

zenozeng
Copy link

use $this[0].scrollHeight & $this[0].scrollWidth to avoid getting the wrong size of the content

@hatashiro
Copy link
Contributor

Hi!

With a quick look, the patch looks nice.

I reviewed the patch and I'd like to make some comments.

First, please remove the lines commented with '//'.
It's the basic refactoring rule that the unused lines should be removed. It looks that they'll be useful someday, but They'll make the code into spaghetti someday.

Second, I think $this.prop('scrollHeight') and $this.prop('scrollWidth') look better with other lines.

Thank you very much for the pull request!
Please take the comments in account and apply them to the patch.

@hatashiro hatashiro closed this Jun 14, 2013
@hatashiro hatashiro reopened this Jun 14, 2013
@hatashiro
Copy link
Contributor

I'll merge the pull request when I'm home and have some tests with IE.

Thank you!

@hatashiro
Copy link
Contributor

Works very well in win7 ie8!

And even, this patch resolve the multiple children problem!!

Thank you very much.

hatashiro pushed a commit that referenced this pull request Jun 14, 2013
Use prop('scrollWidth') and prop('scrollHeight') instead of outerWidth() and outerHeight() to get the content size.
@hatashiro hatashiro merged commit 69a6da9 into mdbootstrap:master Jun 14, 2013
hatashiro pushed a commit that referenced this pull request Apr 29, 2014
Use prop('scrollWidth') and prop('scrollHeight') instead of outerWidth() and outerHeight() to get the content size.
hatashiro pushed a commit that referenced this pull request Sep 24, 2014
Use prop('scrollWidth') and prop('scrollHeight') instead of outerWidth() and outerHeight() to get the content size.
@mdbootstrap mdbootstrap locked as resolved and limited conversation to collaborators Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants