@worktile/gantt 19.0.3 → 19.0.4

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.
@@ -1510,6 +1510,11 @@ class GanttUpper {
1510
1510
  initSelectionModel() {
1511
1511
  return new SelectionModel(this.multiple, []);
1512
1512
  }
1513
+ initCssVariables() {
1514
+ this.element.style.setProperty('--gantt-header-height', coerceCssPixelValue(this.styles.headerHeight));
1515
+ this.element.style.setProperty('--gantt-line-height', coerceCssPixelValue(this.styles.lineHeight));
1516
+ this.element.style.setProperty('--gantt-bar-height', coerceCssPixelValue(this.styles.barHeight));
1517
+ }
1513
1518
  expandGroups(expanded) {
1514
1519
  this.groups.forEach((group) => {
1515
1520
  group.setExpand(expanded);
@@ -1525,6 +1530,7 @@ class GanttUpper {
1525
1530
  this.setupBaselineItems();
1526
1531
  this.computeItemsRefs(...this.baselineItems);
1527
1532
  this.initSelectionModel();
1533
+ this.initCssVariables();
1528
1534
  this.firstChange = false;
1529
1535
  // Note: the zone may be nooped through `BootstrapOptions` when bootstrapping the root module. This means
1530
1536
  // the `onStable` will never emit any value.