fattable icon indicating copy to clipboard operation
fattable copied to clipboard

Goto Method seems backwards

Open encodedstephen opened this issue 10 years ago • 0 comments

I'm not sure if you intended this, but it seems as though the goTo and the setScrollXY conflict. That is, targetY seems to deal with the columns (inside of goTo) but in setScrollXY, the targetY variable would be used to scroll up and down.

To get the goTo working, I actually changed the javascript code to (changed targetY and targetX):

TableView.prototype.goTo = function(i, j) {
    var targetX, targetY;
    targetY = i != null ? this.rowHeight * i : void 0;
    targetX = j != null ? this.columnOffset[j] : void 0;
    return this.scroll.setScrollXY(targetY, targetX);
};

encodedstephen avatar Nov 04 '14 16:11 encodedstephen