@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.
@@ -621,7 +621,7 @@ Core.prototype._hasPendingRowChange = false;
|
|
621
621
|
* @return {string}
|
622
622
|
*/
|
623
623
|
Core.getVersion = function () {
|
624
|
-
return "5.1.
|
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
|
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 <
|
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
|
3708
|
-
if (rowIndex >
|
3709
|
-
let viewIndexSize =
|
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
package/package.json
CHANGED