We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
scrollWidth
offsetWidth
If I'm wrong, please correct;
If looking for document height, then seems something wrong width this line (cos it gives same result with width).
width
https://github.com/ded/bonzo/blob/master/bonzo.js#L858
Test: var dims = bonzo(document).dim(); console.log(dims.width, "x", dims.height) Output: 1263x1263
var dims = bonzo(document).dim(); console.log(dims.width, "x", dims.height)
Math.max(el.body.scrollHeight, el.body.offsetHeight, de.scrollWidth, de.offsetWidth, de.clientHeight)
And, I think it shold be like;
Math.max(el.body.scrollHeight, el.body.offsetHeight, de.scrollHeight, de.offsetHeight, de.clientHeight)
The text was updated successfully, but these errors were encountered:
ooops! my bad; nicely picked up. Fixed in 258deda
Sorry, something went wrong.
No branches or pull requests
If I'm wrong, please correct;
If looking for document height, then seems something wrong width this line (cos it gives same result with
width
).https://github.com/ded/bonzo/blob/master/bonzo.js#L858
Test:
var dims = bonzo(document).dim(); console.log(dims.width, "x", dims.height)
Output: 1263x1263
Math.max(el.body.scrollHeight, el.body.offsetHeight, de.scrollWidth, de.offsetWidth, de.clientHeight)
And, I think it shold be like;
Math.max(el.body.scrollHeight, el.body.offsetHeight, de.scrollHeight, de.offsetHeight, de.clientHeight)
The text was updated successfully, but these errors were encountered: