take the outerwidth of the element when sizing so we include padding and border. fixes #213
This commit is contained in:
parent
0538bdcfa6
commit
2c0344a520
@ -1070,7 +1070,7 @@
|
||||
if (style.indexOf("%") > 0) return style;
|
||||
|
||||
// finally, fallback on the calculated width of the element
|
||||
return (this.opts.element.width() === 0 ? 'auto' : this.opts.element.width() + 'px');
|
||||
return (this.opts.element.width() === 0 ? 'auto' : this.opts.element.outerWidth() + 'px');
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user