-
Notifications
You must be signed in to change notification settings - Fork 76
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
Width and Padding #34
Comments
To my best knowledge, content width should not include padding by default as long as you don't play with |
You're correct about the box-sizing. The example I worked was similar to this one: https://jsfiddle.net/d1231/eoc1dprq/ Is there any timeline regarding the box-sizing feature? Thanks |
I have added some experimental support for |
Thanks. I will check it in the coming days |
Hi,
I think I found issue in the calculations of boxs width.
In BlockBox.java line 2037, you get the content width:
content.width = dec.getLength(width, auto, 0, 0, contw);
That value includes the padding, so when using totalWidth in ElementBox.java line 814:
public int totalWidth() { return emargin.left + border.left + padding.left + content.width + padding.right + border.right + emargin.right; }
So the padding is calculated twice.
The text was updated successfully, but these errors were encountered: