Bug 573326 - In the toolbar customization window, hide the toolbarbutton label and replicate it on the wrapper. r=gavin

--HG--
extra : rebase_source : d70c7db9eac07e0df16b1ca824802654395278eb
This commit is contained in:
Markus Stange 2010-06-25 14:20:33 +02:00
parent 3f6a4cac82
commit 64e8b18f9f
2 changed files with 7 additions and 0 deletions

View File

@ -57,3 +57,8 @@
#main-box > box {
overflow: hidden;
}
/* Hide the toolbarbutton label because we replicate it on the wrapper */
toolbarpaletteitem[place="palette"] > .toolbarbutton-1 > .toolbarbutton-text {
display: none;
}

View File

@ -455,6 +455,8 @@ function cleanUpItemForPalette(aItem, aWrapper)
if (aItem.hasAttribute("title"))
aWrapper.setAttribute("title", aItem.getAttribute("title"));
else if (aItem.hasAttribute("label"))
aWrapper.setAttribute("title", aItem.getAttribute("label"));
else if (isSpecialItem(aItem)) {
var stringBundle = document.getElementById("stringBundle");
// Remove the common "toolbar" prefix to generate the string name.