From 1842985e2525e33331eeb2248557cd97a56f2e62 Mon Sep 17 00:00:00 2001 From: MSzturc Date: Tue, 30 Aug 2022 23:32:28 +0200 Subject: [PATCH] bugfix: remove reset margin on parent blocks --- src/transformers/gridTransformer.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/transformers/gridTransformer.ts b/src/transformers/gridTransformer.ts index e10d7d1d..fdd01b3f 100644 --- a/src/transformers/gridTransformer.ts +++ b/src/transformers/gridTransformer.ts @@ -40,7 +40,10 @@ export class GridTransformer implements AttributeTransformer { const height = this.heightOf(grid) + defaultUnit; const width = this.widthOf(grid) + defaultUnit; - element.addClass('reset-margin'); + if (!isAbsolute) { + element.addClass('reset-margin'); + } + element.addStyle('position', 'absolute'); element.addStyle('left', left); element.addStyle('top', top);