@syncfusion/ej2-gantt 19.4.42 → 19.4.43
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.
- package/CHANGELOG.md +9 -0
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +12 -9
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +12 -9
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/gantt/base/gantt.js +3 -2
- package/src/gantt/base/task-processor.js +9 -7
|
@@ -2729,14 +2729,16 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
2729
2729
|
// eslint-disable-next-line
|
|
2730
2730
|
var resourcesId = [];
|
|
2731
2731
|
var resourcesName = [];
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2732
|
+
if (!isNullOrUndefined(resourceData)) {
|
|
2733
|
+
for (var i = 0; i < resourceData.length; i++) {
|
|
2734
|
+
resourcesId.push(resourceData[i][resourceSettings.id]);
|
|
2735
|
+
var resName = resourceData[i][resourceSettings.name];
|
|
2736
|
+
var resourceUnit = resourceData[i][resourceSettings.unit];
|
|
2737
|
+
if (resourceUnit !== 100) {
|
|
2738
|
+
resName += '[' + resourceUnit + '%' + ']';
|
|
2739
|
+
}
|
|
2740
|
+
resourcesName.push(resName);
|
|
2738
2741
|
}
|
|
2739
|
-
resourcesName.push(resName);
|
|
2740
2742
|
}
|
|
2741
2743
|
this.parent.setRecordValue('resourceNames', resourcesName.join(','), ganttProp, true);
|
|
2742
2744
|
this.updateTaskDataResource(ganttData);
|
|
@@ -12671,7 +12673,7 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
12671
12673
|
Gantt.prototype.calculateDimensions = function () {
|
|
12672
12674
|
var settingsHeight;
|
|
12673
12675
|
if (typeof (this.height) !== 'number' && this.height.indexOf('%') !== -1 && (this.element.parentElement &&
|
|
12674
|
-
!this.element.parentElement.style.height)) {
|
|
12676
|
+
!this.element.parentElement.style.height || this.element.parentElement.style.height.indexOf('%') !== -1)) {
|
|
12675
12677
|
var ganttHeight = Number(this.height.split("%")[0]);
|
|
12676
12678
|
ganttHeight = (ganttHeight * window.innerHeight) / 100;
|
|
12677
12679
|
if (this.height === '100%') {
|
|
@@ -12827,7 +12829,8 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
12827
12829
|
var settingsHeight = void 0;
|
|
12828
12830
|
if (this.height.indexOf('%') !== -1) {
|
|
12829
12831
|
var ganttHeight = Number(this.height.split("%")[0]);
|
|
12830
|
-
if (this.element.parentElement && this.element.parentElement.style.height
|
|
12832
|
+
if (this.element.parentElement && (this.element.parentElement.style.height
|
|
12833
|
+
|| this.element.parentElement.style.height.indexOf('%') !== -1)) {
|
|
12831
12834
|
var containerHeight = Number(this.element.parentElement.style.height.split("px")[0]);
|
|
12832
12835
|
ganttHeight = (ganttHeight * containerHeight) / 100;
|
|
12833
12836
|
}
|