Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Goto Method seems backwards #18

Open
encodedstephen opened this issue Nov 4, 2014 · 0 comments
Open

Goto Method seems backwards #18

encodedstephen opened this issue Nov 4, 2014 · 0 comments

Comments

@encodedstephen
Copy link

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);
};
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant