mjml-column
Advanced tools
Comparing version 4.2.0-beta.1 to 4.2.0-beta.2
@@ -56,4 +56,7 @@ 'use strict'; | ||
var _getBoxWidths = this.getBoxWidths(), | ||
borders = _getBoxWidths.borders, | ||
paddings = _getBoxWidths.paddings; | ||
var paddingSize = this.getShorthandAttrValue('padding', 'left') + this.getShorthandAttrValue('padding', 'right'); | ||
var allPaddings = paddings + borders; | ||
@@ -69,5 +72,5 @@ var containerWidth = this.getAttribute('width') || parseFloat(parentWidth) / nonRawSiblings + 'px'; | ||
if (unit === '%') { | ||
containerWidth = parseFloat(parentWidth) * parsedWidth / 100 - paddingSize + 'px'; | ||
containerWidth = parseFloat(parentWidth) * parsedWidth / 100 - allPaddings + 'px'; | ||
} else { | ||
containerWidth = parsedWidth - paddingSize + 'px'; | ||
containerWidth = parsedWidth - allPaddings + 'px'; | ||
} | ||
@@ -229,3 +232,2 @@ | ||
return '\n <table\n ' + this.htmlAttributes({ | ||
background: this.getAttribute('background-color'), | ||
border: '0', | ||
@@ -232,0 +234,0 @@ cellpadding: '0', |
{ | ||
"name": "mjml-column", | ||
"description": "mjml-column", | ||
"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" | ||
} | ||
} |
257
+ Added@babel/runtime@7.26.7(transitive)
- Removed@babel/runtime@7.26.9(transitive)
Updatedmjml-core@^4.2.0-beta.2