@syncfusion/ej2-layouts 21.2.3 → 21.2.6

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.
@@ -320,7 +320,7 @@ let Splitter = class Splitter extends Component {
320
320
  const prePaneSize = this.orientation === 'Horizontal' ? this.previousPane.offsetWidth : this.previousPane.offsetHeight;
321
321
  const nextPaneSize = this.orientation === 'Horizontal' ? this.nextPane.offsetWidth : this.nextPane.offsetHeight;
322
322
  const splitBarSize = isNullOrUndefined(this.separatorSize) ? BAR_SIZE_DEFAULT : this.separatorSize;
323
- if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
323
+ if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.previousPane.style.flexBasis.indexOf('p') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
324
324
  const previousFlexBasis = this.updatePaneFlexBasis(this.previousPane);
325
325
  const nextFlexBasis = this.updatePaneFlexBasis(this.nextPane);
326
326
  this.totalPercent = previousFlexBasis + nextFlexBasis;
@@ -1071,8 +1071,10 @@ let Splitter = class Splitter extends Component {
1071
1071
  updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
1072
1072
  : (updatePaneOffset + sizeDiff) + 'px';
1073
1073
  const flexPaneOffset = this.orientation === 'Horizontal' ? flexPane.offsetWidth : flexPane.offsetHeight;
1074
- flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1075
- this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1074
+ if (flexPane.style.flexBasis !== '') {
1075
+ flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1076
+ this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1077
+ }
1076
1078
  }
1077
1079
  }
1078
1080
  }