Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

Timeline - Uncaught TypeError: Cannot read property 'height' of undefined #2594

@ghost

Description

Hi all,

First I want to say how much I love vis.js library, it saved me months of time to developp a timeline like yours.

I got an error Error on visjs 4.16.1 and 4.18.0 when i try to move a subgrouped item in another group :

vis.js:21715 Uncaught TypeError: Cannot read property 'height' of undefined
    at http://localhost:63342/rms/bower_components/vis/dist/vis.js:21715:94
    at Object.exports.forEach (http://localhost:63342/rms/bower_components/vis/dist/vis.js:718:9)
    at Group._calculateSubGroupHeights (http://localhost:63342/rms/bower_components/vis/dist/vis.js:21713:12)
    at Group.redraw (http://localhost:63342/rms/bower_components/vis/dist/vis.js:21635:10)
    at http://localhost:63342/rms/bower_components/vis/dist/vis.js:19374:32
    at Object.exports.forEach (http://localhost:63342/rms/bower_components/vis/dist/vis.js:724:11)
    at ItemSet.redraw (http://localhost:63342/rms/bower_components/vis/dist/vis.js:19372:10)
    at http://localhost:63342/rms/bower_components/vis/dist/vis.js:18495:27
    at Array.forEach (native)
    at Timeline.Core._redraw (http://localhost:63342/rms/bower_components/vis/dist/vis.js:18494:21)

If I catch this error I got another one on line 22179 and when I catch the second (in a console.warn) all looks good.

How can i fix it ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions