I have copied the code from the drag-drop listbox example and put it into a .js file called by an html page.
function loadControls()
{
var fonts= "Aardvark,Abbey-Medium,Symbol,ChickenScratch ...etc;
onload = function(){
elm1=domapi.Listbox({parent:document.getElementById("td1"),w:170,h:325,doAllowDrag:true});
...
elm1.delimitedText(fonts);
...
};
};
The fonts listbox loads into the html page and shows up on the screen but the entire list of over 60 fonts is printed on the screen extending below the bottom of the listbox. The listbox is only supposed to be 325 px high but this setting is ignored and the entire list is printed to the screen. Is there a solution to this?