evui 3.4.71 → 3.4.73

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.
package/dist/evui.umd.js CHANGED
@@ -11233,7 +11233,7 @@ $({ target: 'Number', stat: true }, {
11233
11233
  /***/ "9224":
11234
11234
  /***/ (function(module) {
11235
11235
 
11236
- module.exports = JSON.parse("{\"a\":\"3.4.71\"}");
11236
+ module.exports = JSON.parse("{\"a\":\"3.4.73\"}");
11237
11237
 
11238
11238
  /***/ }),
11239
11239
 
@@ -46712,8 +46712,8 @@ var plugins_legend_modules = {
46712
46712
  */
46713
46713
  updateStartEndRowIndex: function updateStartEndRowIndex() {
46714
46714
  var index = Math.max(Math.floor(this.legendBoxDOM.scrollTop / this.legendItemHeight), 0);
46715
- this.startRowIndex = index > this.totalRowCount - 1 ? 0 : index;
46716
- this.endRowIndex = this.startRowIndex + this.visibleRowCount;
46715
+ this.startRowIndex = Math.min(index, Math.max(this.totalRowCount - this.visibleRowCount, 0));
46716
+ this.endRowIndex = this.startRowIndex + this.visibleRowCount + 1;
46717
46717
  },
46718
46718
 
46719
46719
  /**
@@ -47394,10 +47394,8 @@ var plugins_legend_modules = {
47394
47394
 
47395
47395
  this.setLegendColumnHeader();
47396
47396
  } else if (this.options.legend.virtualScroll) {
47397
- var elementsToRemove = this.legendBoxDOM.querySelectorAll('.ev-chart-legend-container');
47398
- elementsToRemove.forEach(function (element) {
47399
- return element.remove();
47400
- });
47397
+ this.updateVisibleRowCount();
47398
+ this.renderVisibleLegends();
47401
47399
  } else {
47402
47400
  while (legendBoxDOM.hasChildNodes()) {
47403
47401
  legendBoxDOM.removeChild(legendBoxDOM.firstChild);