зеркало из https://github.com/mozilla/gecko-dev.git
Bug 983699 - fix widgets in Australis overflow panel to show view on the right anchor, r=jaws
--HG-- extra : rebase_source : 99656dbcbda90cdb19b85c2e48795f7656fca697
This commit is contained in:
Родитель
0a65d8c164
Коммит
a0554a6769
|
@ -1219,8 +1219,16 @@ let CustomizableUIInternal = {
|
|||
}
|
||||
} else if (aWidget.type == "view") {
|
||||
let ownerWindow = aNode.ownerDocument.defaultView;
|
||||
ownerWindow.PanelUI.showSubView(aWidget.viewId, aNode,
|
||||
this.getPlacementOfWidget(aNode.id).area);
|
||||
let area = this.getPlacementOfWidget(aNode.id).area;
|
||||
let anchor = aNode;
|
||||
if (area != CustomizableUI.AREA_PANEL) {
|
||||
let wrapper = this.wrapWidget(aWidget.id).forWindow(ownerWindow);
|
||||
if (wrapper && wrapper.anchor) {
|
||||
this.hidePanelForNode(aNode);
|
||||
anchor = wrapper.anchor;
|
||||
}
|
||||
}
|
||||
ownerWindow.PanelUI.showSubView(aWidget.viewId, anchor, area);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче