Bug 401259 - Empty Places menu should read (empty) but on 2nd focus, sub-menus appears as tiny square. r=sspitzer, a=mconnor.

This commit is contained in:
mozilla.mano@sent.com 2007-10-27 14:57:23 -07:00
parent bd8d2663b5
commit 4b48373df5

View File

@ -942,6 +942,9 @@
// remove previous menu items
while (aPopup.hasChildNodes())
aPopup.removeChild(aPopup.firstChild);
// restore the empty-menu item if has been created already
if (aPopup._emptyMenuItem)
aPopup.appendChild(aPopup._emptyMenuItem);
var resultNode = aPopup._resultNode;
if (!resultNode.containerOpen)