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

[vis-network] move node crash javascript due to text inside and or 'widthConstraint' #3432

Closed
ClementTurmel opened this issue Sep 10, 2017 · 6 comments

Comments

@ClementTurmel
Copy link

vis network
version : 4.20.1
firefox
OS : windows 8.1

some nodes can move well by clicking on them
others nodes crash vis.js javascript
check my example here https://jsfiddle.net/Clemaul/5Lrgktjn/21/
you can try to move "Environnement de développement graphique" node or "logique de programmation" , it will crash, but "SQL" node works well.

i think is due to the text inside node and/or 'widthConstraint' parameter the problem ...

@ClementTurmel
Copy link
Author

problem append here : vis.js

lign : 37824
code : while (_w < _words.length) {

@wimrijnders
Copy link
Contributor

wimrijnders commented Sep 12, 2017

Duplicate of #3171.

As mentioned in #3429, this is supposed to be fixed. You and the OP of #3429 have apparently found combinations of words that still manage to get the infinite loop going on widthConstraint.

I will use your example to test.

@wimrijnders
Copy link
Contributor

wimrijnders commented Sep 12, 2017

I can't get the example to stop when it's in the infinite loop. Would it be possible to make the example so that does not auto-run?

Update: Never mind, I managed getting the example code by mishandling the debug window of chrome.

@wimrijnders
Copy link
Contributor

I can confirm that this is fixed (with #3228) in the current development build:

download 4

It will be in the next release.

FYI, I had to add the following in order to display the accented characters properly:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

@ClementTurmel
Copy link
Author

Thank's a lot ;)

@wimrijnders
Copy link
Contributor

If you're satisfied with the handling, please close the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants