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);