@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.
@@ -1069,10 +1069,12 @@ let Splitter = class Splitter extends Component {
1069
1069
  this.allPanes[i].offsetWidth : this.allPanes[i].offsetHeight);
1070
1070
  const isPercent = updatePane.style.flexBasis.indexOf('%') > -1;
1071
1071
  const updatePaneOffset = this.orientation === 'Horizontal' ? updatePane.offsetWidth : updatePane.offsetHeight;
1072
- updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
1073
- : (updatePaneOffset + sizeDiff) + 'px';
1072
+ if (!isNullOrUndefined(updatePane) && updatePane.style.flexBasis !== '' && updatePane.classList.contains(STATIC_PANE)) {
1073
+ updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
1074
+ : (updatePaneOffset + sizeDiff) + 'px';
1075
+ }
1074
1076
  const flexPaneOffset = this.orientation === 'Horizontal' ? flexPane.offsetWidth : flexPane.offsetHeight;
1075
- if (flexPane.style.flexBasis !== '') {
1077
+ if (!isNullOrUndefined(flexPane) && flexPane.style.flexBasis !== '' && !flexPane.classList.contains(STATIC_PANE)) {
1076
1078
  flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1077
1079
  this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1078
1080
  }