Bug 796222 - create the social toolbar panel/iframe with a default width as a workaround for bug 793057. r=jaws

This commit is contained in:
Mark Hammond 2012-10-05 14:00:53 +10:00
Родитель 3f5dda291e
Коммит 181237526c
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -621,6 +621,9 @@ var SocialToolbar = {
notificationFrame.setAttribute("class", "social-panel-frame");
notificationFrame.setAttribute("id", notificationFrameId);
notificationFrame.setAttribute("mozbrowser", "true");
// work around bug 793057 - by making the panel roughly the final size
// we are more likely to have the anchor in the correct position.
notificationFrame.style.width = PANEL_MIN_WIDTH + "px";
notificationFrames.appendChild(notificationFrame);
}
notificationFrame.setAttribute("origin", provider.origin);