Open Faterou opened 9 years ago
Original comment by Sylvain Hallé (Bitbucket: sylvainhalle, GitHub: sylvainhalle):
Why not just have two different properties with two names:
width
for the total width (i.e. the total space occupied)inner width
for the width without the borderOriginal comment by Sylvain Hallé (Bitbucket: sylvainhalle, GitHub: sylvainhalle):
Removing component: JavaScript Probe (automated comment)
Originally reported by: Gabrielle Bastien (Bitbucket: gabrielle_bastien, GitHub: Unknown)
If an element is set to a certain width and has a border, the width read by Cornipickle is less than the given width, because of the border. It could be better to set the default width as the total width (width + border), which represents the total space taken by the element on the page.
Suggestion:
width
for the total width (i.e. the total space occupied)inner width
for the width without the border