зеркало из https://github.com/mozilla/gecko-dev.git
Bug 829416 - SocialAPI ambient panel appears in middle of screen when toolbar is in Text mode. r=mixedpuppy
--HG-- extra : rebase_source : db7be579b94718265cd1a0558d4db01542384d29
This commit is contained in:
Родитель
991900775b
Коммит
ea200557e0
|
@ -969,8 +969,11 @@ var SocialToolbar = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let toolbarButtonIcon = document.getAnonymousElementByAttribute(aToolbarButton, "class", "toolbarbutton-icon");
|
let navBar = document.getElementById("nav-bar");
|
||||||
panel.openPopup(toolbarButtonIcon, "bottomcenter topright", 0, 0, false, false);
|
let anchor = navBar.getAttribute("mode") == "text" ?
|
||||||
|
document.getAnonymousElementByAttribute(aToolbarButton, "class", "toolbarbutton-text") :
|
||||||
|
document.getAnonymousElementByAttribute(aToolbarButton, "class", "toolbarbutton-icon");
|
||||||
|
panel.openPopup(anchor, "bottomcenter topright", 0, 0, false, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
setPanelErrorMessage: function SocialToolbar_setPanelErrorMessage(aNotificationFrame) {
|
setPanelErrorMessage: function SocialToolbar_setPanelErrorMessage(aNotificationFrame) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче