@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.
@@ -4250,9 +4250,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
4250
4250
  if (this.treeColumnIndex >= this.columns.length) {
4251
4251
  failureCases.push('TreeColumnIndex value should not exceed the total column count.');
4252
4252
  }
4253
- if (this.enableVirtualization && (!/[0-9]$/.test(this.columnModel.filter((col) => col.width).toString())
4254
- && !/[px]$/.test(this.columnModel.filter((col) => col.width).toString()))
4255
- || (/[0-9]$/.test(this.height.toString()) && /[px]$/.test(this.height.toString()))) {
4253
+ if (this.enableVirtualization &&
4254
+ (this.columnModel.some((col) => /%$/.test(col.width)) ||
4255
+ /%$/.test(this.height.toString()))) {
4256
4256
  failureCases.push('column width and height should be in pixels');
4257
4257
  }
4258
4258
  if ((this.childMapping !== 'Children') && !isNullOrUndefined(this.idMapping)) {