Skip to content

Commit

Permalink
MSIE fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
resurtm committed May 27, 2013
1 parent 8964d6e commit 9002196
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/yii/views/errorHandler/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,15 @@
};

var refreshCallStackItemCode = function(callStackItem) {
var top = callStackItem.offsetTop - window.scrollY,
var top = callStackItem.offsetTop - window.pageYOffset,
lines = Sizzle('pre', callStackItem)[0].getClientRects(),
lineNumbers = Sizzle('.lines-item', callStackItem),
errorLine = Sizzle('.error-line', callStackItem)[0],
hoverLines = Sizzle('.hover-line', callStackItem);
for (var i = 0, imax = lines.length; i < imax; ++i) {
if (!lineNumbers[i]) {
continue;
}
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';
Expand Down

0 comments on commit 9002196

Please sign in to comment.