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

something wrong with el.clientHeight #135

Closed
a1mersnow opened this issue Feb 10, 2017 · 2 comments
Closed

something wrong with el.clientHeight #135

a1mersnow opened this issue Feb 10, 2017 · 2 comments

Comments

@a1mersnow
Copy link

a1mersnow commented Feb 10, 2017

image
I think it shouldn't contain border width.

I test it in chrome.

When border-box clientHeight means height - borderWidth
When content-box clientHeight means height + padding

It looks like el.getBoundingRect().height is equal to el.offsetHeight.

@item4
Copy link
Contributor

item4 commented Feb 12, 2017

You're right. clientWidth/Height do not contain border. [Reference]

@camsong
Copy link
Owner

camsong commented Feb 13, 2017

@aimergenge Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants