@refinitiv-ui/efx-grid 6.0.70 → 6.0.72

Sign up to get free protection for your applications and to get access to all the features.
@@ -24986,7 +24986,14 @@ VirtualizedLayoutGrid.prototype.getFirstIndexInView = function () {
24986
24986
 
24987
24987
  /** @inheritDoc */
24988
24988
  VirtualizedLayoutGrid.prototype.getLastIndexInView = function () {
24989
- return this._firstIndex + this._getInnerRowCount() - 1;
24989
+ var li = this._firstIndex + this._getInnerRowCount() - 1;
24990
+ var core = this._grid._getContext();
24991
+ var dv = core.getDataSource();
24992
+ var actualLastIndex = dv ? dv.getRowCount() - 1 : -1;
24993
+ if (li > actualLastIndex) { //Avoid incorrect index because the delay of row count synchronization after filtering
24994
+ return actualLastIndex;
24995
+ }
24996
+ return li;
24990
24997
  };
24991
24998
 
24992
24999
  /** @inheritDoc */
@@ -26102,7 +26109,7 @@ Core_Core.prototype._firstRendered = false;
26102
26109
  * @return {string}
26103
26110
  */
26104
26111
  Core_Core.getVersion = function () {
26105
- return "5.1.78";
26112
+ return "5.1.81";
26106
26113
  };
26107
26114
  /** {@link ElementWrapper#dispose}
26108
26115
  * @override
@@ -30973,7 +30980,7 @@ Core_Core.prototype._onRowHeightChanged = function (e) {
30973
30980
  // TODO: Set row height one by one is not good
30974
30981
  for(var j = 0; j < len; ++j) {
30975
30982
  var evt = evts[j];
30976
- var section = /** @type {ILayoutGrid} */(evt["sender"]);
30983
+ var section = /** @type {ILayoutGrid} */(evt["section"]);
30977
30984
  if(!this._containsSection(section)) {
30978
30985
  continue; // The section is no longer contained in this grid
30979
30986
  }