diff options
| author | Aymeric Augustin | 2014-07-06 22:32:05 +0200 |
|---|---|---|
| committer | Aymeric Augustin | 2014-07-06 22:32:05 +0200 |
| commit | fbbbc1d49e5a8e8f50fb111b26ec481436c3a215 (patch) | |
| tree | ec43730e5c7fe0e053966ba2a4a1e9c0a2a286cd | |
| parent | 1bc51edd7612f43a7fa49f44d8650f512002a0f8 (diff) | |
| parent | ac539e5ba019a0881b4b28dc2133bcc9f74ce5e3 (diff) | |
| download | django-debug-toolbar-fbbbc1d49e5a8e8f50fb111b26ec481436c3a215.tar.bz2 | |
Merge pull request #616 from tim-schilling/fix-top-584
Get the relative top rather than the absolute top.
| -rw-r--r-- | debug_toolbar/static/debug_toolbar/js/toolbar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index 7bde19b..2a6df02 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -150,7 +150,7 @@ $(document).on('mouseup', function () { $(document).off('mousemove.djDebug'); if (djdt.handleDragged) { - var top = handle.offset().top; + var top = handle.offset().top - window.pageYOffset; djdt.cookie.set('djdttop', top, { path: '/', expires: 10 |
