зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
39118207dc
Коммит
1f5e3f44d1
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче