Closed krmgns closed 11 years ago
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)
ooops! my bad; nicely picked up. Fixed in 258deda8a5
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: 1263x1263Math.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)