Skip to content
New issue

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

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

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

No branches or pull requests

1 participant