@syncfusion/ej2-layouts 22.1.36 → 22.1.37

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.
@@ -1093,10 +1093,12 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1093
1093
  this.allPanes[i].offsetWidth : this.allPanes[i].offsetHeight);
1094
1094
  var isPercent = updatePane.style.flexBasis.indexOf('%') > -1;
1095
1095
  var updatePaneOffset = this.orientation === 'Horizontal' ? updatePane.offsetWidth : updatePane.offsetHeight;
1096
- updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
1097
- : (updatePaneOffset + sizeDiff) + 'px';
1096
+ if (!isNullOrUndefined(updatePane) && updatePane.style.flexBasis !== '' && updatePane.classList.contains(STATIC_PANE)) {
1097
+ updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
1098
+ : (updatePaneOffset + sizeDiff) + 'px';
1099
+ }
1098
1100
  var flexPaneOffset = this.orientation === 'Horizontal' ? flexPane.offsetWidth : flexPane.offsetHeight;
1099
- if (flexPane.style.flexBasis !== '') {
1101
+ if (!isNullOrUndefined(flexPane) && flexPane.style.flexBasis !== '' && !flexPane.classList.contains(STATIC_PANE)) {
1100
1102
  flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1101
1103
  this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1102
1104
  }