提交 0c18c9aa 编写于 作者: K Kayn 提交者: Evert Timberg

- Fix helper._calculatePadding return NaN; (#6857)

上级 26ea9f0b
......@@ -15,3 +15,5 @@ bower.json
*.log
*.swp
*.stackdump
chart.js-*.tgz
......@@ -454,7 +454,7 @@ module.exports = function() {
* @private
*/
helpers._calculatePadding = function(container, padding, parentDimension) {
padding = helpers.getStyle(container, padding);
padding = helpers.getStyle(container, padding) || '0';
return padding.indexOf('%') > -1 ? parentDimension * parseInt(padding, 10) / 100 : parseInt(padding, 10);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册