Skip to content

moveSelectionOverlay sometimes doesn't detect position #14

@jdarwood007

Description

@jdarwood007

While working with this plugin, I was having an issue with it on the very last line new row
Uncaught TypeError: Cannot read property 'bottom' of null
ext.overlay.js:155

I was able to work around this by modifying the script and finding the following line

            var position = grid.getCellNodeBox(activeCell.row, activeCell.cell);

And then added in:

            if (position == null) {
                position = grid.getCellNodeBox(activeCell.row - 1, activeCell.cell);
                var options = grid.getOptions();
                position.top += options.rowHeight;
                position.bottom += options.rowHeight;
            }

This hasn't solved my issue with after hitting enter that no new line shows up, but has resolved a console error.

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