Skip to content

Slickgrid not displaying properly after changing grid options #2

@jandsmit

Description

@jandsmit

After changing grid options with setOptions like this:

subGrid.setOptions({ editable: true });

... the grid does not redraw correctly. All columns are compressed to the left.
Resizing a column restores the grid and everything is ok.

I found it to be a bug in slick.grid.js (2.2) in function absBox(elem).
The first 'while' loop allows elem to become null and there the grid breaks.

I tested by simply inserting:

if (elem == null) break; - directly after the while and that solves the problem.

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