strict mode fixes, invalidate outliner on soft scroll if we don't actually have to scroll.
This commit is contained in:
rginda%netscape.com 2001-10-09 22:55:39 +00:00
Родитель 2f092ff7a0
Коммит c748f4c733
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -257,6 +257,10 @@ function sv_lscroll (line)
var fuzz = 2; var fuzz = 2;
if (line < (first + fuzz) || line > (last - fuzz)) if (line < (first + fuzz) || line > (last - fuzz))
this.scrollTo (line, 0); this.scrollTo (line, 0);
else
this.outliner.invalidate(); /* invalidate to show the new currentLine if
* we don't have to scroll. */
} }
/* nsIOutlinerView */ /* nsIOutlinerView */
@ -1124,6 +1128,8 @@ function sv_cellprops (index, colID, properties)
if (row.property) if (row.property)
return properties.AppendElement (row.property); return properties.AppendElement (row.property);
} }
return null;
} }
console.stackView.stack = new TOLabelRecord ("stack-col-0", MSG_CALL_STACK); console.stackView.stack = new TOLabelRecord ("stack-col-0", MSG_CALL_STACK);
@ -1147,6 +1153,8 @@ function pv_cellprops (index, colID, properties)
if (row.property) if (row.property)
return properties.AppendElement (row.property); return properties.AppendElement (row.property);
} }
return null;
} }
console.blacklist = new TOLabelRecord ("project-col-0", MSG_BLACKLIST); console.blacklist = new TOLabelRecord ("project-col-0", MSG_BLACKLIST);

Просмотреть файл

@ -257,6 +257,10 @@ function sv_lscroll (line)
var fuzz = 2; var fuzz = 2;
if (line < (first + fuzz) || line > (last - fuzz)) if (line < (first + fuzz) || line > (last - fuzz))
this.scrollTo (line, 0); this.scrollTo (line, 0);
else
this.outliner.invalidate(); /* invalidate to show the new currentLine if
* we don't have to scroll. */
} }
/* nsIOutlinerView */ /* nsIOutlinerView */
@ -1124,6 +1128,8 @@ function sv_cellprops (index, colID, properties)
if (row.property) if (row.property)
return properties.AppendElement (row.property); return properties.AppendElement (row.property);
} }
return null;
} }
console.stackView.stack = new TOLabelRecord ("stack-col-0", MSG_CALL_STACK); console.stackView.stack = new TOLabelRecord ("stack-col-0", MSG_CALL_STACK);
@ -1147,6 +1153,8 @@ function pv_cellprops (index, colID, properties)
if (row.property) if (row.property)
return properties.AppendElement (row.property); return properties.AppendElement (row.property);
} }
return null;
} }
console.blacklist = new TOLabelRecord ("project-col-0", MSG_BLACKLIST); console.blacklist = new TOLabelRecord ("project-col-0", MSG_BLACKLIST);