Skip to content

Commit c62bc6e

Browse files
committed
Fix problem with emit resize event
1 parent 4d8f45b commit c62bc6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/src/app/gridster/gridster.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export class GridsterService {
455455

456456
public updateCachedItems () {
457457
// Notify the user with the items that changed since the previous snapshot
458-
this.triggerOnChange(this.gridsterOptions.basicOptions.breakpoint);
458+
this.triggerOnChange(null);
459459
this.gridsterOptions.responsiveOptions.forEach((options: IGridsterOptions) => {
460460
this.triggerOnChange(options.breakpoint);
461461
});

src/gridster.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export class GridsterService {
455455

456456
public updateCachedItems () {
457457
// Notify the user with the items that changed since the previous snapshot
458-
this.triggerOnChange(this.gridsterOptions.basicOptions.breakpoint);
458+
this.triggerOnChange(null);
459459
this.gridsterOptions.responsiveOptions.forEach((options: IGridsterOptions) => {
460460
this.triggerOnChange(options.breakpoint);
461461
});

0 commit comments

Comments
 (0)