mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 461855 - Places details pane retains height after opening tag selector or extended details. r=mak77
This commit is contained in:
parent
aae680fe23
commit
aca04dc852
@ -645,6 +645,10 @@ var PlacesOrganizer = {
|
||||
_fillDetailsPane: function PO__fillDetailsPane(aNodeList) {
|
||||
var infoBox = document.getElementById("infoBox");
|
||||
var detailsDeck = document.getElementById("detailsDeck");
|
||||
|
||||
// Make sure the infoBox UI is visible if we need to use it, we hide it
|
||||
// below when we don't.
|
||||
infoBox.hidden = false;
|
||||
var aSelectedNode = aNodeList.length == 1 ? aNodeList[0] : null;
|
||||
// If a textbox within a panel is focused, force-blur it so its contents
|
||||
// are saved
|
||||
@ -695,6 +699,7 @@ var PlacesOrganizer = {
|
||||
itemsCountLabel.value =
|
||||
PlacesUIUtils.getFormattedString("detailsPane.multipleItems",
|
||||
[aNodeList.length]);
|
||||
infoBox.hidden = true;
|
||||
return;
|
||||
}
|
||||
itemIds[i] = aNodeList[i].itemId != -1 ? aNodeList[i].itemId :
|
||||
@ -712,6 +717,7 @@ var PlacesOrganizer = {
|
||||
}
|
||||
else {
|
||||
detailsDeck.selectedIndex = 0;
|
||||
infoBox.hidden = true;
|
||||
var selectItemDesc = document.getElementById("selectItemDescription");
|
||||
var itemsCountLabel = document.getElementById("itemsCountText");
|
||||
var rowCount = this._content.treeBoxObject.view.rowCount;
|
||||
|
Loading…
Reference in New Issue
Block a user