Skip to content

Commit

Permalink
bugfix: remove reset margin on parent blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzturc committed Aug 30, 2022
1 parent ae32b1d commit 1842985
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transformers/gridTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1842985

Please sign in to comment.