Bug 547342 attempted fix. Since scrollToRow doesn't flush layout, and since layout is what sets up the tree view, and since scrollToRow bails out early if there's no view, make sure to flush layout before calling scrollToRow. But we should really consider fixing scrollToRow instead.

This commit is contained in:
Boris Zbarsky 2010-02-19 23:35:17 -05:00
Родитель 39118207dc
Коммит 1f5e3f44d1
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -107,6 +107,7 @@ var oldtreefirstrow, oldtreecfirstrow;
function nextDataSource()
{
document.documentElement.getBoundingClientRect();
var tree = document.getElementById('t');
var treec = document.getElementById('tc');
tree.treeBoxObject.scrollToRow(10);