Skip to content

Goto Method seems backwards #18

@encodedstephen

Description

@encodedstephen

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);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions