Bug 355469 - Show Passwords dialog does not resize correctly. r=mconnor.

This commit is contained in:
mozilla.mano%sent.com 2006-10-24 23:27:44 +00:00
Родитель 0ce72c77cd
Коммит 1f831db14e
1 изменённых файлов: 12 добавлений и 13 удалений

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

@ -734,21 +734,20 @@
this._paneDeck.setAttribute("selectedIndex", i);
if (this.type != "child") {
// Don't let the new pane content flex to the current window
// height if we're animating
if (this._shouldAnimate)
aPaneElement.removeAttribute("flex");
var oldPane = this.lastSelected ? document.getElementById(this.lastSelected) : this.preferencePanes[0];
oldPane.selected = !(aPaneElement.selected = true);
if (!this._initialized || oldPane.id != aPaneElement.id) {
this.lastSelected = aPaneElement.id;
this.currentPane = aPaneElement;
if (this._shouldAnimate) {
aPaneElement.style.opacity = 0.0;
this.animate(oldPane, aPaneElement);
}
this._initialized = true;
this.lastSelected = aPaneElement.id;
this.currentPane = aPaneElement;
this._initialized = true;
// Only animate if we've switched between prefpanes
if (this._shouldAnimate && oldPane.id != aPaneElement.id) {
// Don't let the new pane content flex to the current window
// height if we're animating
aPaneElement.removeAttribute("flex");
aPaneElement.style.opacity = 0.0;
this.animate(oldPane, aPaneElement);
}
}
break;