Browse Source

Hover and error line increased by 1 px.

tags/2.0.0-beta
resurtm 12 years ago
parent
commit
3870df7bc0
  1. 4
      framework/yii/views/errorHandler/main.php

4
framework/yii/views/errorHandler/main.php

@ -460,10 +460,10 @@ window.onload = function() {
}
lineNumbers[i].style.top = parseInt(lines[i].top - top) + 'px';
hoverLines[i].style.top = parseInt(lines[i].top - top) + 'px';
hoverLines[i].style.height = parseInt(lines[i].bottom - lines[i].top) + 'px';
hoverLines[i].style.height = parseInt(lines[i].bottom - lines[i].top + 1) + 'px';
if (parseInt(callStackItem.getAttribute('data-line')) == i) {
errorLine.style.top = parseInt(lines[i].top - top) + 'px';
errorLine.style.height = parseInt(lines[i].bottom - lines[i].top) + 'px';
errorLine.style.height = parseInt(lines[i].bottom - lines[i].top + 1) + 'px';
}
}
};

Loading…
Cancel
Save