@syncfusion/ej2-layouts 20.1.55 → 20.1.58

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.
@@ -1059,7 +1059,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1059
1059
  paneMinRange = this.convertPercentageToPixel(this.paneSettings[i].min);
1060
1060
  }
1061
1061
  minValue = this.convertPixelToNumber((paneMinRange).toString());
1062
- if (this.orientation === 'Horizontal' ? this.allPanes[i].offsetWidth : this.allPanes[i].offsetHeight < minValue) {
1062
+ if ((this.orientation === 'Horizontal' ? this.allPanes[i].offsetWidth : this.allPanes[i].offsetHeight) < minValue) {
1063
1063
  if (i === paneIndex) {
1064
1064
  updatePane = this.allPanes[i];
1065
1065
  flexPane = this.allPanes[i + 1];
@@ -1201,22 +1201,20 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1201
1201
  var visiblePane = collapseCount === this.allPanes.length - 2;
1202
1202
  var panes = this.allPanes;
1203
1203
  for (var i = 0; i < panes.length; i++) {
1204
- if (panes[i].classList.contains(EXPAND_PANE)) {
1205
- panes[i].style.flexGrow = '1';
1206
- }
1207
- else if (panes[i].classList.contains(COLLAPSE_PANE)) {
1208
- panes[i].style.flexGrow = '0';
1209
- }
1210
- else {
1211
- panes[i].style.flexGrow = '';
1212
- }
1204
+ panes[i].style.flexGrow = '';
1213
1205
  if (status && !this.nextPane.classList.contains(COLLAPSE_PANE)) {
1214
1206
  this.nextPane.style.flexGrow = '1';
1215
1207
  }
1216
- if (visiblePane && !this.allPanes[i].classList.contains(COLLAPSE_PANE) && this.paneSettings[i].size &&
1208
+ if (visiblePane && this.allPanes[i].classList.contains(COLLAPSE_PANE) && this.paneSettings[i].size &&
1217
1209
  i !== this.allPanes.length - 1) {
1218
1210
  panes[i].style.flexGrow = '';
1219
1211
  }
1212
+ if (panes[i].classList.contains(EXPAND_PANE)) {
1213
+ panes[i].style.flexGrow = '1';
1214
+ }
1215
+ else if (panes[i].classList.contains(COLLAPSE_PANE)) {
1216
+ panes[i].style.flexGrow = '0';
1217
+ }
1220
1218
  }
1221
1219
  };
1222
1220
  Splitter.prototype.hideTargetBarIcon = function (targetBar, targetArrow) {