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 572e58754e
commit ceacf65c1c

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)