diff options
| author | tschilling | 2014-07-05 18:25:18 -0400 |
|---|---|---|
| committer | tschilling | 2014-07-05 18:25:18 -0400 |
| commit | ac539e5ba019a0881b4b28dc2133bcc9f74ce5e3 (patch) | |
| tree | ec43730e5c7fe0e053966ba2a4a1e9c0a2a286cd | |
| parent | 1bc51edd7612f43a7fa49f44d8650f512002a0f8 (diff) | |
| download | django-debug-toolbar-ac539e5ba019a0881b4b28dc2133bcc9f74ce5e3.tar.bz2 | |
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 |
