@schneideress/dashboardframework 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -534,9 +534,10 @@
534
534
  * @return {?}
535
535
  */
536
536
  function (changes) {
537
- if (this.raDashboardEventBus && this.userDashboardId && this.areaKey) {
538
- this.initiateGridsterConfig();
537
+ if (this.globalFilter && this.raDashboardEventBus && this.appConfig) {
539
538
  this.loadWidgets(this.userDashboardId, this.areaKey);
539
+ }
540
+ if (changes.raDashboardEventBus.currentValue != changes.raDashboardEventBus.previousValue) {
540
541
  this.inititateEventBusSubscritions();
541
542
  }
542
543
  };
@@ -691,12 +692,7 @@
691
692
  function (widgets) {
692
693
  if (widgets && widgets.length > 0) {
693
694
  areaContext.widgetList = _this.mapObjectListToGridsterItemList(widgets);
694
- setTimeout((/**
695
- * @return {?}
696
- */
697
- function () {
698
- areaContext.setAreaHeight();
699
- }), 2000);
695
+ areaContext.setAreaHeight();
700
696
  }
701
697
  }));
702
698
  };
@@ -728,6 +724,9 @@
728
724
  if (this.options.api) {
729
725
  areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 2;
730
726
  }
727
+ else {
728
+ console.log('api not defined in auto height');
729
+ }
731
730
  if (areaHeight < 600) {
732
731
  areaHeight = 600;
733
732
  }
@@ -2622,12 +2621,6 @@
2622
2621
  if (this.options.destroyCallback) {
2623
2622
  this.options.destroyCallback(this);
2624
2623
  }
2625
- if (this.options.api) {
2626
- this.options.api.resize = undefined;
2627
- this.options.api.optionsChanged = undefined;
2628
- this.options.api.getNextPossiblePosition = undefined;
2629
- this.options.api = undefined;
2630
- }
2631
2624
  this.emptyCell.destroy();
2632
2625
  delete this.emptyCell;
2633
2626
  this.compact.destroy();