зеркало из https://github.com/mozilla/gecko-dev.git
Bug 431140 - dropping a bookmark or folder in the library window causes flickering (for mak77@supereva.it, r=mano, a=mconnor)
This commit is contained in:
Родитель
e890be0b74
Коммит
b1086f79fa
|
@ -230,6 +230,7 @@ var PlacesOrganizer = {
|
|||
}
|
||||
|
||||
this._setSearchScopeForNode(node);
|
||||
if (this._places.treeBoxObject.focused)
|
||||
this._fillDetailsPane(node);
|
||||
},
|
||||
|
||||
|
@ -619,6 +620,7 @@ var PlacesOrganizer = {
|
|||
},
|
||||
|
||||
onContentTreeSelect: function PO_onContentTreeSelect() {
|
||||
if (this._content.treeBoxObject.focused)
|
||||
this._fillDetailsPane(this._content.selectedNode);
|
||||
},
|
||||
|
||||
|
|
|
@ -327,10 +327,9 @@ PlacesTreeView.prototype = {
|
|||
}
|
||||
|
||||
// now update the number of elements
|
||||
if (previouslySelectedNodes.length > 0)
|
||||
selection.selectEventsSuppressed = true;
|
||||
|
||||
this._tree.beginUpdateBatch();
|
||||
|
||||
if (replaceCount)
|
||||
this._tree.rowCountChanged(startReplacement, -replaceCount);
|
||||
if (newElements.length)
|
||||
|
@ -349,8 +348,8 @@ PlacesTreeView.prototype = {
|
|||
}
|
||||
// if we don't have a parent, we made it all the way to the root
|
||||
// and didn't find a match, so we can open our item
|
||||
if (!parent)
|
||||
item.containerOpen = !item.containerOpen;
|
||||
if (!parent && !item.containerOpen)
|
||||
item.containerOpen = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -394,9 +393,8 @@ PlacesTreeView.prototype = {
|
|||
selection.rangedSelect(previouslySelectedNodes[0].oldIndex,
|
||||
previouslySelectedNodes[0].oldIndex, true);
|
||||
}
|
||||
|
||||
selection.selectEventsSuppressed = false;
|
||||
}
|
||||
selection.selectEventsSuppressed = false;
|
||||
},
|
||||
|
||||
_convertPRTimeToString: function PTV__convertPRTimeToString(aTime) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче