mjml-section
Advanced tools
Comparing version 4.2.0-beta.1 to 4.2.0-beta.2
@@ -42,6 +42,2 @@ 'use strict'; | ||
var _widthParser2 = require('mjml-core/lib/helpers/widthParser'); | ||
var _widthParser3 = _interopRequireDefault(_widthParser2); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -72,14 +68,7 @@ | ||
value: function getChildContext() { | ||
var containerWidth = this.context.containerWidth; | ||
var _getBoxWidths = this.getBoxWidths(), | ||
box = _getBoxWidths.box; | ||
var paddingSize = this.getShorthandAttrValue('padding', 'left') + this.getShorthandAttrValue('padding', 'right'); | ||
var _widthParser = (0, _widthParser3.default)(containerWidth, { | ||
parseFloatToInt: false | ||
}), | ||
parsedWidth = _widthParser.parsedWidth; | ||
return (0, _extends3.default)({}, this.context, { | ||
containerWidth: parsedWidth - paddingSize + 'px' | ||
containerWidth: box + 'px' | ||
}); | ||
@@ -86,0 +75,0 @@ } |
{ | ||
"name": "mjml-section", | ||
"description": "mjml-section", | ||
"version": "4.2.0-beta.1", | ||
"version": "4.2.0-beta.2", | ||
"main": "lib/index.js", | ||
@@ -23,4 +23,4 @@ "repository": { | ||
"lodash": "^4.17.2", | ||
"mjml-core": "^4.2.0-beta.1" | ||
"mjml-core": "^4.2.0-beta.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17326
233
Updatedmjml-core@^4.2.0-beta.2