Bug 804068 - set social sharebutton image via .src, plus css tweaks to ensure it is sized correctly. r=jaws

This commit is contained in:
Alfred Kayser 2012-10-24 13:46:05 +11:00
parent 355cbd57e3
commit 8798269b51
4 changed files with 1 additions and 16 deletions

View File

@ -593,7 +593,7 @@ let SocialShareButton = {
shareButton.setAttribute("tooltiptext", this.promptMessages['shareTooltip']);
imageURL = this.promptImages["share"]
}
shareButton.style.backgroundImage = 'url("' + encodeURI(imageURL) + '")';
shareButton.src = imageURL;
}
};

View File

@ -1378,11 +1378,6 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
/* social recommending panel */
#share-button {
width: 16px;
height: 16px;
}
#socialUserPortrait {
width: 48px;
height: 48px;

View File

@ -1636,11 +1636,6 @@ window[tabsontop="false"] richlistitem[type~="action"][actiontype="switchtab"][s
/* social recommending panel */
#share-button {
width: 16px;
height: 16px;
}
#socialUserPortrait {
width: 48px;
height: 48px;

View File

@ -1640,11 +1640,6 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
/* social recommending panel */
#share-button {
width: 16px;
height: 16px;
}
#socialUserPortrait {
width: 48px;
height: 48px;