Bug 684276 - Wrap labels in Android tablet menu. r=mbrubeck
authorWes Johnston <wjohnston@mozilla.com>
Fri, 02 Sep 2011 12:35:38 -0700
changeset 77791 f4af15996729ad75744f7ddad44ab579e0e06cfe
parent 77790 f4dfe613ee0cbcc1364db1a3720710e90c63efd7
child 77792 ba720787775f210a18b523dc1ec2ac097b4ad618
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs684276
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 684276 - Wrap labels in Android tablet menu. r=mbrubeck
mobile/chrome/content/AppMenu.js
--- a/mobile/chrome/content/AppMenu.js
+++ b/mobile/chrome/content/AppMenu.js
@@ -45,17 +45,17 @@ var AppMenu = {
 
         child.setAttribute("show", true);
 
         let item = document.createElement("richlistitem");
         item.setAttribute("class", child.className);
         item.onclick = function() { child.click(); }
 
         let label = document.createElement("label");
-        label.setAttribute("value", child.label);
+        label.textContent = child.label;
         item.appendChild(label);
 
         if (item.classList.contains("appmenu-pageaction"))
           siteCommandsBox.appendChild(item);
         else
           listbox.appendChild(item);
       }
       this.popup.hidden = false;