{"action":"closed","issue":{"url":"https://api.github.com/repos/xieziyu/angular2-draggable/issues/67","repository_url":"https://api.github.com/repos/xieziyu/angular2-draggable","labels_url":"https://api.github.com/repos/xieziyu/angular2-draggable/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/xieziyu/angular2-draggable/issues/67/comments","events_url":"https://api.github.com/repos/xieziyu/angular2-draggable/issues/67/events","html_url":"https://github.com/xieziyu/angular2-draggable/issues/67","id":321071630,"number":67,"title":"Bad positioning when multiple draggable elements in one container","user":{"login":"erwsub","id":20328485,"avatar_url":"https://avatars1.githubusercontent.com/u/20328485?v=4","gravatar_id":"","url":"https://api.github.com/users/erwsub","html_url":"https://github.com/erwsub","followers_url":"https://api.github.com/users/erwsub/followers","following_url":"https://api.github.com/users/erwsub/following{/other_user}","gists_url":"https://api.github.com/users/erwsub/gists{/gist_id}","starred_url":"https://api.github.com/users/erwsub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erwsub/subscriptions","organizations_url":"https://api.github.com/users/erwsub/orgs","repos_url":"https://api.github.com/users/erwsub/repos","events_url":"https://api.github.com/users/erwsub/events{/privacy}","received_events_url":"https://api.github.com/users/erwsub/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-08T07:24:33Z","updated_at":"2018-05-08T08:13:25Z","closed_at":"2018-05-08T08:13:25Z","author_association":"NONE","body":"If there are multiple draggable elements in the container only the first one is positioned correctly. The second ones y coordinate is not relative to the container.\r\n\r\n```\r\npublic position1 = {x: 10, y: 10};\r\npublic position2 = {x: 150, y: 10};\r\n```\r\n\r\n```\r\n<div class='drag-container' #myBounds>\r\n    <div class='drag-item1' [position]=\"position1\" [bounds]='myBounds' [inBounds]=\"inBounds\" ngDraggable>Drag me! (1)</div>\r\n    <div class='drag-item2' [position]=\"position2\" [bounds]='myBounds' [inBounds]=\"inBounds\" ngDraggable>Drag me! (2)</div>\r\n</div>\r\n```\r\n\r\n![screenshot_20180508_091103](https://user-images.githubusercontent.com/20328485/39743227-8f9eb56c-52a0-11e8-95b9-2e8bbd70cdd9.png)\r\n"}}
{"actor":{"display_login":"erwsub"}}