Skip to content

Commit d7fbe1e

Browse files
authored
Merge pull request swiety85#82 from swiety85/bug-new-items-and-no-responsive-config
Fix snap issue with new items and no responsive configuration swiety85#74
2 parents 2da65b9 + b3dd000 commit d7fbe1e

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

demo/src/app/gridster/gridster-item/gridster-item.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,9 @@ export class GridsterItemComponent implements OnInit, OnChanges, AfterViewInit,
215215
if (this.gridster.isInitialized()) {
216216
if (this.x || this.x === 0) {
217217
this.item.setValueX(this.x, this.gridster.options.breakpoint);
218-
this.x = null;
219218
}
220219
if (this.y || this.y === 0) {
221220
this.item.setValueY(this.y, this.gridster.options.breakpoint);
222-
this.y = null;
223221
}
224222
this.setPositionsOnItem();
225223
}

src/gridster-item/gridster-item.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,9 @@ export class GridsterItemComponent implements OnInit, OnChanges, AfterViewInit,
215215
if (this.gridster.isInitialized()) {
216216
if (this.x || this.x === 0) {
217217
this.item.setValueX(this.x, this.gridster.options.breakpoint);
218-
this.x = null;
219218
}
220219
if (this.y || this.y === 0) {
221220
this.item.setValueY(this.y, this.gridster.options.breakpoint);
222-
this.y = null;
223221
}
224222
this.setPositionsOnItem();
225223
}

0 commit comments

Comments
 (0)