Skip to content

Commit 025b51d

Browse files
authored
Better solution for maxHeight
Added maxHeight equals to user window height - codesniffer height.
1 parent 0dd25fa commit 025b51d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Auditor/HTMLCSAuditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ _global.HTMLCSAuditor = new function()
197197
};
198198

199199
_doc.onmouseup = function(e) {
200-
var maxHeight = window.innerHeight - 30;
200+
var maxHeight = window.innerHeight - e.clientHeight;
201201

202202
if (mouseX > maxHeight) {
203203
wrapper.style.top = maxHeight + 'px';

0 commit comments

Comments
 (0)