Skip to content

Commit cb0735a

Browse files
committed
bugfix(mj-wrapper): displays too wide with padding #3019
- When adding padding to mj-wrapper, the padding is added to the width, rather than subtracted from it.
1 parent 3f3b0bc commit cb0735a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/mjml-wrapper/src/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ export default class MjWrapper extends MjSection {
99
gap: 'unit(px)',
1010
}
1111

12-
getChildContext() {
13-
return {
14-
...this.context,
15-
gap: this.getAttribute('gap'),
16-
}
17-
}
18-
1912
renderWrappedChildren() {
2013
const { children } = this.props
2114
const { containerWidth } = this.context

0 commit comments

Comments
 (0)