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:
Jared Wein 2013-01-16 14:07:45 -05:00
parent 991900775b
commit ea200557e0

View File

@ -969,8 +969,11 @@ var SocialToolbar = {
}
});
let toolbarButtonIcon = document.getAnonymousElementByAttribute(aToolbarButton, "class", "toolbarbutton-icon");
panel.openPopup(toolbarButtonIcon, "bottomcenter topright", 0, 0, false, false);
let navBar = document.getElementById("nav-bar");
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) {