@schneideress/dashboardframework 0.0.191 → 0.0.192

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.
@@ -1287,49 +1287,54 @@
1287
1287
  */
1288
1288
  function () {
1289
1289
  var _this = this;
1290
- /** @type {?} */
1291
- var isMobile = false;
1292
- if (this.options.mobileBreakpoint > this.gridWrapper.nativeElement.clientWidth) {
1293
- isMobile = true;
1294
- }
1295
- /** @type {?} */
1296
- var areaScrollHeight = 0;
1297
- /** @type {?} */
1298
- var areaHeight = 0;
1299
- /** @type {?} */
1300
- var curRowHeight = 0;
1301
- if (this.options.api) {
1302
- curRowHeight = this.options.api.getCurrentRowHeight();
1303
- }
1304
- this.widgetList.forEach((/**
1305
- * @param {?} t
1290
+ setTimeout((/**
1306
1291
  * @return {?}
1307
1292
  */
1308
- function (t) {
1293
+ function () {
1309
1294
  /** @type {?} */
1310
- var currentHeight = t.y + t.rows;
1311
- if (currentHeight > areaScrollHeight) {
1312
- areaScrollHeight = currentHeight;
1295
+ var isMobile = false;
1296
+ if (_this.options.mobileBreakpoint > _this.gridWrapper.nativeElement.clientWidth) {
1297
+ isMobile = true;
1313
1298
  }
1314
- if (curRowHeight == 0) {
1315
- currentHeight = _this.widgetList[0].curRowHeight;
1299
+ /** @type {?} */
1300
+ var areaScrollHeight = 0;
1301
+ /** @type {?} */
1302
+ var areaHeight = 0;
1303
+ /** @type {?} */
1304
+ var curRowHeight = 0;
1305
+ if (_this.options.api) {
1306
+ curRowHeight = _this.options.api.getCurrentRowHeight();
1316
1307
  }
1317
- t.widgetInfo.rowHeight = curRowHeight;
1308
+ _this.widgetList.forEach((/**
1309
+ * @param {?} t
1310
+ * @return {?}
1311
+ */
1312
+ function (t) {
1313
+ /** @type {?} */
1314
+ var currentHeight = t.y + t.rows;
1315
+ if (currentHeight > areaScrollHeight) {
1316
+ areaScrollHeight = currentHeight;
1317
+ }
1318
+ if (curRowHeight == 0) {
1319
+ currentHeight = _this.widgetList[0].curRowHeight;
1320
+ }
1321
+ t.widgetInfo.rowHeight = curRowHeight;
1322
+ }));
1323
+ _this.gridcellHeight = curRowHeight;
1324
+ if (_this.options.api) {
1325
+ areaHeight = areaScrollHeight * _this.options.api.getCurrentRowHeight() + 100;
1326
+ }
1327
+ /** @type {?} */
1328
+ var areaScrollHeightMob = 0;
1329
+ if (isMobile) {
1330
+ areaScrollHeightMob = _this.widgetList.length * 300 + 200;
1331
+ areaHeight = areaScrollHeightMob;
1332
+ }
1333
+ if (areaHeight < 600) {
1334
+ areaHeight = 600;
1335
+ }
1336
+ _this.gridheight = areaHeight;
1318
1337
  }));
1319
- this.gridcellHeight = curRowHeight;
1320
- if (this.options.api) {
1321
- areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 100;
1322
- }
1323
- /** @type {?} */
1324
- var areaScrollHeightMob = 0;
1325
- if (isMobile) {
1326
- areaScrollHeightMob = this.widgetList.length * 300 + 200;
1327
- areaHeight = areaScrollHeightMob;
1328
- }
1329
- if (areaHeight < 600) {
1330
- areaHeight = 600;
1331
- }
1332
- this.gridheight = areaHeight;
1333
1338
  };
1334
1339
  /** To remove a widget instance from dashboard and to save info in database */
1335
1340
  /**