1
0
mirror of synced 2024-11-25 22:36:03 +03:00

take the outerwidth of the element when sizing so we include padding and border. fixes #213

This commit is contained in:
Igor Vaynberg 2012-07-10 09:40:00 +03:00
parent 0538bdcfa6
commit 2c0344a520

View File

@ -1070,7 +1070,7 @@
if (style.indexOf("%") > 0) return style; if (style.indexOf("%") > 0) return style;
// finally, fallback on the calculated width of the element // 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');
} }
}); });