@schneideress/dashboardframework 0.0.207 → 0.0.209

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.
@@ -1690,10 +1690,7 @@ var RAWidgetContainer = /** @class */ (function () {
1690
1690
  size.width = this.width;
1691
1691
  size.cellHeight = this.gridCellHeight;
1692
1692
  this.widgetElement.widgetResized(size);
1693
- if (this.widgetElement.titleLineEnabledFor1xView() && (this.height == 1 || this.width == 1))
1694
- this.enableTitleLine = true;
1695
- else
1696
- this.enableTitleLine = this.enableTitleLineActual;
1693
+ this.setTitleLineFor1xView();
1697
1694
  }
1698
1695
  };
1699
1696
  /**
@@ -2053,6 +2050,7 @@ var RAWidgetContainer = /** @class */ (function () {
2053
2050
  return [4 /*yield*/, widgetContainer.setDownloadIcon()];
2054
2051
  case 2:
2055
2052
  _a.sent();
2053
+ this.setTitleLineFor1xView();
2056
2054
  return [2 /*return*/];
2057
2055
  }
2058
2056
  });
@@ -2555,6 +2553,22 @@ var RAWidgetContainer = /** @class */ (function () {
2555
2553
  else
2556
2554
  this.noPadding = false;
2557
2555
  };
2556
+ /**
2557
+ * @private
2558
+ * @return {?}
2559
+ */
2560
+ RAWidgetContainer.prototype.setTitleLineFor1xView = /**
2561
+ * @private
2562
+ * @return {?}
2563
+ */
2564
+ function () {
2565
+ /** @type {?} */
2566
+ var titleLineEnabled1x = this.widgetElement.titleLineEnabledFor1xView();
2567
+ if (typeof (titleLineEnabled1x) != 'undefined' && titleLineEnabled1x && (this.height == 1 || this.width == 1))
2568
+ this.enableTitleLine = true;
2569
+ else
2570
+ this.enableTitleLine = this.enableTitleLineActual;
2571
+ };
2558
2572
  RAWidgetContainer.decorators = [
2559
2573
  { type: Component, args: [{
2560
2574
  selector: 'ra-widget-container',