@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.
@@ -341,7 +341,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
341
341
  var prePaneSize = this.orientation === 'Horizontal' ? this.previousPane.offsetWidth : this.previousPane.offsetHeight;
342
342
  var nextPaneSize = this.orientation === 'Horizontal' ? this.nextPane.offsetWidth : this.nextPane.offsetHeight;
343
343
  var splitBarSize = isNullOrUndefined(this.separatorSize) ? BAR_SIZE_DEFAULT : this.separatorSize;
344
- if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
344
+ if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.previousPane.style.flexBasis.indexOf('p') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
345
345
  var previousFlexBasis = this.updatePaneFlexBasis(this.previousPane);
346
346
  var nextFlexBasis = this.updatePaneFlexBasis(this.nextPane);
347
347
  this.totalPercent = previousFlexBasis + nextFlexBasis;
@@ -1095,8 +1095,10 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1095
1095
  updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
1096
1096
  : (updatePaneOffset + sizeDiff) + 'px';
1097
1097
  var flexPaneOffset = this.orientation === 'Horizontal' ? flexPane.offsetWidth : flexPane.offsetHeight;
1098
- flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1099
- this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1098
+ if (flexPane.style.flexBasis !== '') {
1099
+ flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1100
+ this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1101
+ }
1100
1102
  }
1101
1103
  }
1102
1104
  }