Skip to content

Commit ac539e5

Browse files
committed
Get the relative top rather than the absolute top.
1 parent 1bc51ed commit ac539e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
$(document).on('mouseup', function () {
151151
$(document).off('mousemove.djDebug');
152152
if (djdt.handleDragged) {
153-
var top = handle.offset().top;
153+
var top = handle.offset().top - window.pageYOffset;
154154
djdt.cookie.set('djdttop', top, {
155155
path: '/',
156156
expires: 10

0 commit comments

Comments
 (0)