{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/3171","repository_url":"https://api.github.com/repos/almende/vis","labels_url":"https://api.github.com/repos/almende/vis/issues/3171/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/3171/comments","events_url":"https://api.github.com/repos/almende/vis/issues/3171/events","html_url":"https://github.com/almende/vis/issues/3171","id":235829509,"number":3171,"title":"Network: nodes.widthConstraint: similar min/max values cause infinite loading loop","user":{"login":"cityy","id":1555990,"avatar_url":"https://avatars0.githubusercontent.com/u/1555990?v=3","gravatar_id":"","url":"https://api.github.com/users/cityy","html_url":"https://github.com/cityy","followers_url":"https://api.github.com/users/cityy/followers","following_url":"https://api.github.com/users/cityy/following{/other_user}","gists_url":"https://api.github.com/users/cityy/gists{/gist_id}","starred_url":"https://api.github.com/users/cityy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cityy/subscriptions","organizations_url":"https://api.github.com/users/cityy/orgs","repos_url":"https://api.github.com/users/cityy/repos","events_url":"https://api.github.com/users/cityy/events{/privacy}","received_events_url":"https://api.github.com/users/cityy/received_events","type":"User","site_admin":false},"labels":[{"id":36077693,"url":"https://api.github.com/repos/almende/vis/labels/Confirmed%20Bug","name":"Confirmed Bug","color":"fc2929","default":false},{"id":82640305,"url":"https://api.github.com/repos/almende/vis/labels/Network","name":"Network","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-06-14T10:12:00Z","updated_at":"2017-07-03T06:05:14Z","closed_at":null,"body":"Creating a network with similar minimum/maximum values for nodes.widthConstraint causes an infinite loading loop. I stumbled across the issue trying to set circle shape nodes to all have the same size.\r\n\r\nThe following fails to load:\r\n```\r\nvar options = {\r\nnodes:{\r\n  widthConstraint:\r\n     { minimum: 150, maximum: 170,}\r\n   }\r\n};\r\n\r\nnetwork = new vis.Network(container, data, options);\r\n```\r\nI've been able to reproduce the issue by simply modifying the Network Node Shapes example: http://visjs.org/examples/network/nodeStyles/shapes.html\r\n\r\nIt's really weirdly breaking if min/max values get too close to each other:\r\n```\r\n{ minimum: 150, maximum: 150,} // fails\r\n{ minimum: 150, maximum: 175,} // fails\r\n{ minimum: 150, maximum: 176,} // works\r\n{ minimum: 150, maximum: 190,} // works \r\n```\r\n\r\n**Update:** Just a note. The exact values that cause it to fail differ between my current project and the node shapes example. "},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/312556786","html_url":"https://github.com/almende/vis/issues/3171#issuecomment-312556786","issue_url":"https://api.github.com/repos/almende/vis/issues/3171","id":312556786,"user":{"login":"wimrijnders","id":769037,"avatar_url":"https://avatars2.githubusercontent.com/u/769037?v=3","gravatar_id":"","url":"https://api.github.com/users/wimrijnders","html_url":"https://github.com/wimrijnders","followers_url":"https://api.github.com/users/wimrijnders/followers","following_url":"https://api.github.com/users/wimrijnders/following{/other_user}","gists_url":"https://api.github.com/users/wimrijnders/gists{/gist_id}","starred_url":"https://api.github.com/users/wimrijnders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wimrijnders/subscriptions","organizations_url":"https://api.github.com/users/wimrijnders/orgs","repos_url":"https://api.github.com/users/wimrijnders/repos","events_url":"https://api.github.com/users/wimrijnders/events{/privacy}","received_events_url":"https://api.github.com/users/wimrijnders/received_events","type":"User","site_admin":false},"created_at":"2017-07-03T06:05:14Z","updated_at":"2017-07-03T06:05:14Z","body":"@cityy I find that a very reasonable question; would you mind making an issue for that? It's a bit out of the scope of current issue. Please refer to this issue."}}
{"actor":{"display_login":"wimrijnders"}}