{"action":"opened","issue":{"url":"https://api.github.com/repos/HubSpot/drop/issues/59","labels_url":"https://api.github.com/repos/HubSpot/drop/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/HubSpot/drop/issues/59/comments","events_url":"https://api.github.com/repos/HubSpot/drop/issues/59/events","html_url":"https://github.com/HubSpot/drop/issues/59","id":62795126,"number":59,"title":"Drop with requirejs","user":{"login":"ditoglez","id":4080299,"avatar_url":"https://avatars.githubusercontent.com/u/4080299?v=3","gravatar_id":"","url":"https://api.github.com/users/ditoglez","html_url":"https://github.com/ditoglez","followers_url":"https://api.github.com/users/ditoglez/followers","following_url":"https://api.github.com/users/ditoglez/following{/other_user}","gists_url":"https://api.github.com/users/ditoglez/gists{/gist_id}","starred_url":"https://api.github.com/users/ditoglez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ditoglez/subscriptions","organizations_url":"https://api.github.com/users/ditoglez/orgs","repos_url":"https://api.github.com/users/ditoglez/repos","events_url":"https://api.github.com/users/ditoglez/events{/privacy}","received_events_url":"https://api.github.com/users/ditoglez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T20:46:46Z","updated_at":"2015-03-18T20:46:46Z","closed_at":null,"body":"Hi!\r\nI am trying to use drop with require.js. As far as I see, the drop element doesn't reposition itself on window resize or scroll event. Using it straight without require.js everything works fine.\r\n\r\nSample code:\r\n\r\n```javascript\r\nrequire.config({\r\n    baseUrl: './',\r\n    paths: {\r\n        'TetherUtils': 'bower_components/tether/js/utils',\r\n        'Tether': 'bower_components/tether/js/tether',\r\n        'Drop': 'bower_components/drop/js/drop'\r\n    },\r\n    shim: {\r\n        'TetherUtils': {\r\n            'exports': 'TetherUtils'\r\n        },\r\n        'Tether': {\r\n            'exports': 'Tether',\r\n            'deps': ['TetherUtils']\r\n        },\r\n        'Drop': {\r\n            'exports': 'Drop',\r\n            'deps': ['Tether']\r\n        }\r\n    }\r\n});\r\n\r\nrequire(['Drop'], function (Drop) {\r\n\r\n   var drop =  new Drop({\r\n        target: document.querySelector('.button'),\r\n        content: '<div class=\"__drop__element\">DROP ELEMENT</div>',\r\n        placement: 'bottom center',\r\n       constrainToWindow: true,\r\n        openOn: 'click'\r\n    });\r\n});"}}