@syncfusion/ej2-layouts 19.4.38 → 19.4.52

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.
@@ -115,25 +115,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
115
115
  * @param element - Specifies the element that is rendered as an Splitter.
116
116
  */
117
117
  function Splitter(options, element) {
118
- var _this = _super.call(this, options, element) || this;
119
- _this.allPanes = [];
120
- _this.paneOrder = [];
121
- _this.separatorOrder = [];
122
- _this.allBars = [];
123
- _this.previousCoordinates = {};
124
- _this.currentCoordinates = {};
125
- _this.updatePrePaneInPercentage = false;
126
- _this.updateNextPaneInPercentage = false;
127
- _this.panesDimensions = [];
128
- _this.border = 0;
129
- _this.validDataAttributes = ['data-size', 'data-min', 'data-max', 'data-collapsible',
130
- 'data-resizable', 'data-content', 'data-collapsed'];
131
- _this.validElementAttributes = ['data-orientation', 'data-width', 'data-height'];
132
- _this.iconsDelay = 300;
133
- _this.templateElement = [];
134
- _this.collapseFlag = false;
135
- _this.expandFlag = true;
136
- return _this;
118
+ return _super.call(this, options, element) || this;
137
119
  }
138
120
  /**
139
121
  * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
@@ -256,7 +238,27 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
256
238
  }
257
239
  this.allPanes[index].classList.add(STATIC_PANE);
258
240
  };
241
+ Splitter.prototype.initializeValues = function () {
242
+ this.allPanes = [];
243
+ this.paneOrder = [];
244
+ this.separatorOrder = [];
245
+ this.allBars = [];
246
+ this.previousCoordinates = {};
247
+ this.currentCoordinates = {};
248
+ this.updatePrePaneInPercentage = false;
249
+ this.updateNextPaneInPercentage = false;
250
+ this.panesDimensions = [];
251
+ this.border = 0;
252
+ this.validDataAttributes = ['data-size', 'data-min', 'data-max', 'data-collapsible',
253
+ 'data-resizable', 'data-content', 'data-collapsed'];
254
+ this.validElementAttributes = ['data-orientation', 'data-width', 'data-height'];
255
+ this.iconsDelay = 300;
256
+ this.templateElement = [];
257
+ this.collapseFlag = false;
258
+ this.expandFlag = true;
259
+ };
259
260
  Splitter.prototype.preRender = function () {
261
+ this.initializeValues();
260
262
  this.onReportWindowSize = this.reportWindowSize.bind(this);
261
263
  this.onMouseMoveHandler = this.onMouseMove.bind(this);
262
264
  this.onMouseUpHandler = this.onMouseUp.bind(this);
@@ -1588,7 +1590,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1588
1590
  };
1589
1591
  Splitter.prototype.getSeparatorPosition = function (e) {
1590
1592
  this.updateCursorPosition(e, 'current');
1591
- var rectBound = (this.orientation === 'Horizontal') ? this.element.getBoundingClientRect().left :
1593
+ var rectBound = (this.orientation === 'Horizontal') ? this.element.getBoundingClientRect().left + window.scrollX :
1592
1594
  this.element.getBoundingClientRect().top + window.scrollY;
1593
1595
  var offSet = (this.orientation === 'Horizontal') ? this.element.offsetWidth : this.element.offsetHeight;
1594
1596
  return this.calcDragPosition(rectBound, offSet);
@@ -1865,7 +1867,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1865
1867
  }
1866
1868
  };
1867
1869
  Splitter.prototype.validateDraggedPosition = function (draggedPos, prevPaneHeightWidth, nextPaneHeightWidth) {
1868
- var separatorTopLeft = (this.orientation === 'Horizontal') ? this.currentSeparator.offsetLeft :
1870
+ var separatorTopLeft = (this.orientation === 'Horizontal') ? this.currentSeparator.offsetLeft + window.scrollX :
1869
1871
  this.currentSeparator.offsetTop;
1870
1872
  var prePaneRange = separatorTopLeft - prevPaneHeightWidth;
1871
1873
  var nextPaneRange = nextPaneHeightWidth + separatorTopLeft;
@@ -3132,8 +3134,9 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3132
3134
  else {
3133
3135
  if (this.element.classList.contains(responsive)) {
3134
3136
  removeClass([this.element], [responsive]);
3135
- for (var i = 0; i < this.element.querySelectorAll('.e-panel').length; i++) {
3136
- var ele = this.element.querySelectorAll('.e-panel')[i];
3137
+ var internalPanels = this.element.querySelectorAll(((this.element.id) ? '#' + this.element.id + ' > ' : '') + '.e-panel');
3138
+ for (var i = 0; i < internalPanels.length; i++) {
3139
+ var ele = internalPanels[i];
3137
3140
  var cellInstance = this.getCellInstance(ele.id);
3138
3141
  var row = parseInt(ele.getAttribute('data-row'), 10);
3139
3142
  var col = parseInt(ele.getAttribute('data-col'), 10);