--- popup.xml 2003-12-09 09:54:35.522784600 -0500 +++ popup.xml 2003-12-09 09:36:20.418101400 -0500 @@ -158,17 +158,17 @@ ]]> - + 0 false 50) { + splitpoint = labels[i].substring(0, 50).lastIndexOf(" "); + if (splitpoint > 0) + removed = labels.splice(i, 1, labels[i].substring(0, splitpoint), labels[i].substr(splitpoint + 1)); + } + label = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "label"); + label.className = "tooltip-label"; + label.setAttribute("value", labels[i]); + label.setAttribute("crop", this.getAttribute("crop") || "right"); + vbox.appendChild(label); + } } // This is a special consideration for tree titletips. There is a // case where the user moves the mouse from over the treebody to // completely outside of the window, while passing over a cell that // displays a titletip. This causes the titletip to show, even though // the mouse is not over the corresponding cell, so we need to check // if the titletip was entered by the mouse, and if not, hide it.