Backed out changeset 246b44df7dd3 (bug 504384).

This fix was wrong.
This commit is contained in:
Shawn Wilsher 2009-07-28 10:11:09 -07:00
Родитель 74dcb71f65
Коммит c2be364634
1 изменённых файлов: 3 добавлений и 5 удалений

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

@ -975,15 +975,13 @@
<method name="_invalidate">
<body>
<![CDATA[
// If we do not have a specific height, we'll have to figure out what
// our actual height should be dynamically.
if (!this.hasAttribute("height")) {
// collapsed if no matches
this.richlistbox.collapsed = (this._matchCount == 0);
// Adjust the height, but we need to delay this because adjustHeight
// gets the wrong values (see the comments in _adjustAcItem about
// overflow. XXX why?).
// Dynamically update height until richlistbox.rows works (bug 401939)
// Adjust the height immediately and after the row contents update
this.adjustHeight();
setTimeout(function(self) self.adjustHeight(), 0, this);
}