@refinitiv-ui/efx-grid 6.0.115 → 6.0.116

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.
@@ -621,7 +621,7 @@ Core.prototype._hasPendingRowChange = false;
621
621
  * @return {string}
622
622
  */
623
623
  Core.getVersion = function () {
624
- return "5.1.115";
624
+ return "5.1.116";
625
625
  };
626
626
  /** {@link ElementWrapper#dispose}
627
627
  * @override
@@ -3692,21 +3692,21 @@ Core.prototype.getYScrollVal = function (sectionRef, rowIndex, topOfView) {
3692
3692
  else if (rowIndex >= rowCount) { rowIndex = rowCount - 1; }
3693
3693
 
3694
3694
  let viewInfo = this.getVerticalViewInfo();
3695
- let viewTopIndex = viewInfo.topRowIndex; // TODO: Make it work in zooming mode
3695
+ let firstFullRow = viewInfo.firstFullRow; // TODO: Make it work in zooming mode
3696
3696
 
3697
3697
  let scrollIndex = -1;
3698
3698
  if (topOfView) {
3699
3699
  scrollIndex = rowIndex;
3700
3700
  } else {
3701
- if(rowIndex < viewTopIndex) { // Scroll up
3701
+ if(rowIndex < firstFullRow) { // Scroll up
3702
3702
  scrollIndex = rowIndex - 3; // Have some spaces at the top for more appealing visual
3703
3703
  if(scrollIndex < 0) {
3704
3704
  scrollIndex = 0;
3705
3705
  }
3706
3706
  } else { // Scroll down
3707
- let viewBottomIndex = viewInfo.bottomRowIndex;
3708
- if (rowIndex > viewBottomIndex) {
3709
- let viewIndexSize = viewBottomIndex - viewTopIndex;
3707
+ let lastFullRow = viewInfo.lastFullRow;
3708
+ if (rowIndex > lastFullRow) {
3709
+ let viewIndexSize = lastFullRow - firstFullRow;
3710
3710
  scrollIndex = rowIndex - viewIndexSize + 3;
3711
3711
  if(scrollIndex < 0) {
3712
3712
  scrollIndex = 0;
package/lib/grid/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.115" };
3
+ window.EFX_GRID = { version: "6.0.116" };
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "version": "6.0.115"
72
+ "version": "6.0.116"
73
73
  }