@refinitiv-ui/efx-grid 6.0.115 → 6.0.116

Sign up to get free protection for your applications and to get access to all the features.
@@ -25712,7 +25712,7 @@ Core_Core.prototype._hasPendingRowChange = false;
25712
25712
  * @return {string}
25713
25713
  */
25714
25714
  Core_Core.getVersion = function () {
25715
- return "5.1.115";
25715
+ return "5.1.116";
25716
25716
  };
25717
25717
  /** {@link ElementWrapper#dispose}
25718
25718
  * @override
@@ -28783,21 +28783,21 @@ Core_Core.prototype.getYScrollVal = function (sectionRef, rowIndex, topOfView) {
28783
28783
  else if (rowIndex >= rowCount) { rowIndex = rowCount - 1; }
28784
28784
 
28785
28785
  let viewInfo = this.getVerticalViewInfo();
28786
- let viewTopIndex = viewInfo.topRowIndex; // TODO: Make it work in zooming mode
28786
+ let firstFullRow = viewInfo.firstFullRow; // TODO: Make it work in zooming mode
28787
28787
 
28788
28788
  let scrollIndex = -1;
28789
28789
  if (topOfView) {
28790
28790
  scrollIndex = rowIndex;
28791
28791
  } else {
28792
- if(rowIndex < viewTopIndex) { // Scroll up
28792
+ if(rowIndex < firstFullRow) { // Scroll up
28793
28793
  scrollIndex = rowIndex - 3; // Have some spaces at the top for more appealing visual
28794
28794
  if(scrollIndex < 0) {
28795
28795
  scrollIndex = 0;
28796
28796
  }
28797
28797
  } else { // Scroll down
28798
- let viewBottomIndex = viewInfo.bottomRowIndex;
28799
- if (rowIndex > viewBottomIndex) {
28800
- let viewIndexSize = viewBottomIndex - viewTopIndex;
28798
+ let lastFullRow = viewInfo.lastFullRow;
28799
+ if (rowIndex > lastFullRow) {
28800
+ let viewIndexSize = lastFullRow - firstFullRow;
28801
28801
  scrollIndex = rowIndex - viewIndexSize + 3;
28802
28802
  if(scrollIndex < 0) {
28803
28803
  scrollIndex = 0;