@syncfusion/ej2-treegrid 26.2.12 → 26.2.14

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.
@@ -4543,9 +4543,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4543
4543
  if (this.treeColumnIndex >= this.columns.length) {
4544
4544
  failureCases.push('TreeColumnIndex value should not exceed the total column count.');
4545
4545
  }
4546
- if (this.enableVirtualization && (!/[0-9]$/.test(this.columnModel.filter(function (col) { return col.width; }).toString())
4547
- && !/[px]$/.test(this.columnModel.filter(function (col) { return col.width; }).toString()))
4548
- || (/[0-9]$/.test(this.height.toString()) && /[px]$/.test(this.height.toString()))) {
4546
+ if (this.enableVirtualization &&
4547
+ (this.columnModel.some(function (col) { return /%$/.test(col.width); }) ||
4548
+ /%$/.test(this.height.toString()))) {
4549
4549
  failureCases.push('column width and height should be in pixels');
4550
4550
  }
4551
4551
  if ((this.childMapping !== 'Children') && !isNullOrUndefined(this.idMapping)) {