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
Родитель 991900775b
Коммит ea200557e0
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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) {