{"action":"created","issue":{"url":"https://api.github.com/repos/jsplumb/jsPlumb/issues/626","repository_url":"https://api.github.com/repos/jsplumb/jsPlumb","labels_url":"https://api.github.com/repos/jsplumb/jsPlumb/issues/626/labels{/name}","comments_url":"https://api.github.com/repos/jsplumb/jsPlumb/issues/626/comments","events_url":"https://api.github.com/repos/jsplumb/jsPlumb/issues/626/events","html_url":"https://github.com/jsplumb/jsPlumb/issues/626","id":219914970,"number":626,"title":"Connector positions not updated on scrollable container","user":{"login":"urbanhusky","id":2065748,"avatar_url":"https://avatars2.githubusercontent.com/u/2065748?v=3","gravatar_id":"","url":"https://api.github.com/users/urbanhusky","html_url":"https://github.com/urbanhusky","followers_url":"https://api.github.com/users/urbanhusky/followers","following_url":"https://api.github.com/users/urbanhusky/following{/other_user}","gists_url":"https://api.github.com/users/urbanhusky/gists{/gist_id}","starred_url":"https://api.github.com/users/urbanhusky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbanhusky/subscriptions","organizations_url":"https://api.github.com/users/urbanhusky/orgs","repos_url":"https://api.github.com/users/urbanhusky/repos","events_url":"https://api.github.com/users/urbanhusky/events{/privacy}","received_events_url":"https://api.github.com/users/urbanhusky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-06T14:20:12Z","updated_at":"2017-04-06T15:12:51Z","closed_at":null,"body":"I've got a scrollable (`overflow: auto`) container in a flexible (flexbox) layout. All the connected elements are also in a flexible layout.\r\nAdditionally, I've set up an event handler on the container `scroll` and `resize`which calls `jsPlumb.repaintEverything();`\r\n\r\nThe connectors are always rendered based on the top-/leftmost scrolling position instead of where the elements are actually positioned."},"comment":{"url":"https://api.github.com/repos/jsplumb/jsPlumb/issues/comments/292205834","html_url":"https://github.com/jsplumb/jsPlumb/issues/626#issuecomment-292205834","issue_url":"https://api.github.com/repos/jsplumb/jsPlumb/issues/626","id":292205834,"user":{"login":"urbanhusky","id":2065748,"avatar_url":"https://avatars2.githubusercontent.com/u/2065748?v=3","gravatar_id":"","url":"https://api.github.com/users/urbanhusky","html_url":"https://github.com/urbanhusky","followers_url":"https://api.github.com/users/urbanhusky/followers","following_url":"https://api.github.com/users/urbanhusky/following{/other_user}","gists_url":"https://api.github.com/users/urbanhusky/gists{/gist_id}","starred_url":"https://api.github.com/users/urbanhusky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbanhusky/subscriptions","organizations_url":"https://api.github.com/users/urbanhusky/orgs","repos_url":"https://api.github.com/users/urbanhusky/repos","events_url":"https://api.github.com/users/urbanhusky/events{/privacy}","received_events_url":"https://api.github.com/users/urbanhusky/received_events","type":"User","site_admin":false},"created_at":"2017-04-06T15:12:51Z","updated_at":"2017-04-06T15:12:51Z","body":"Nevermind, the correct syntax to set the container when requesting an instance is:\r\n`jsPlumb.getInstance({ Container: \"containerdiv\"});`. \r\n\r\n*I had written it as `container:`, i.e. lowercase*\r\n\r\nScrolling works fine now, except that the overflowing connectors are rendered outside the container (https://github.com/jsplumb/jsPlumb/issues/625)"}}
{"actor":{"display_login":"urbanhusky"}}