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.
@@ -11224,7 +11224,7 @@ $({ target: 'Number', stat: true }, {
11224
11224
  /***/ "9224":
11225
11225
  /***/ (function(module) {
11226
11226
 
11227
- module.exports = JSON.parse("{\"a\":\"3.4.71\"}");
11227
+ module.exports = JSON.parse("{\"a\":\"3.4.73\"}");
11228
11228
 
11229
11229
  /***/ }),
11230
11230
 
@@ -46703,8 +46703,8 @@ var plugins_legend_modules = {
46703
46703
  */
46704
46704
  updateStartEndRowIndex: function updateStartEndRowIndex() {
46705
46705
  var index = Math.max(Math.floor(this.legendBoxDOM.scrollTop / this.legendItemHeight), 0);
46706
- this.startRowIndex = index > this.totalRowCount - 1 ? 0 : index;
46707
- this.endRowIndex = this.startRowIndex + this.visibleRowCount;
46706
+ this.startRowIndex = Math.min(index, Math.max(this.totalRowCount - this.visibleRowCount, 0));
46707
+ this.endRowIndex = this.startRowIndex + this.visibleRowCount + 1;
46708
46708
  },
46709
46709
 
46710
46710
  /**
@@ -47385,10 +47385,8 @@ var plugins_legend_modules = {
47385
47385
 
47386
47386
  this.setLegendColumnHeader();
47387
47387
  } else if (this.options.legend.virtualScroll) {
47388
- var elementsToRemove = this.legendBoxDOM.querySelectorAll('.ev-chart-legend-container');
47389
- elementsToRemove.forEach(function (element) {
47390
- return element.remove();
47391
- });
47388
+ this.updateVisibleRowCount();
47389
+ this.renderVisibleLegends();
47392
47390
  } else {
47393
47391
  while (legendBoxDOM.hasChildNodes()) {
47394
47392
  legendBoxDOM.removeChild(legendBoxDOM.firstChild);