Supplementary patch to bug 221503 to fix timeout issues r=pch sr=alecf

git-svn-id: svn://10.0.0.236/trunk@147854 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2003-10-10 22:20:20 +00:00
parent caa6b530dd
commit ecb38ffbfc

View File

@@ -717,7 +717,9 @@ var BookmarksToolbar =
resizeFunc: function(event)
{
if (event && event.target != document)
if (!event) // timer callback case
BookmarksToolbarRDFObserver._overflowTimerInEffect = false;
else if (event.target != document)
return; // only interested in chrome resizes
var buttons = document.getElementById("bookmarks-ptf");
@@ -755,7 +757,6 @@ var BookmarksToolbar =
}
}
}
BookmarksToolbarRDFObserver._overflowTimerInEffect = false;
},
// Fill in tooltips for personal toolbar
@@ -807,7 +808,7 @@ var BookmarksToolbarRDFObserver =
if (this._overflowTimerInEffect)
return;
this._overflowTimerInEffect = true;
setTimeout(BookmarksToolbar.resizeFunc, 0);
setTimeout(BookmarksToolbar.resizeFunc, 0, null);
},
_overflowTimerInEffect: false,
@@ -818,6 +819,6 @@ var BookmarksToolbarRDFObserver =
if (aSource.Value != "NC:PersonalToolbarFolder" || aProperty.Value == NC_NS+"LastModifiedDate")
return;
this._overflowTimerInEffect = true;
setTimeout(BookmarksToolbar.resizeFunc, 0);
setTimeout(BookmarksToolbar.resizeFunc, 0, null);
}
}