It seems their is a bug with NS6 when trying to retrieve the height value
of a list layer. (work well with NS4.7 and IE5.5) NS6 return somthing like
the number of element of the list instead of the wanted height in pixel.
Do you have any tip so that I can deal with that?
Thank you.
-----------------------------------------------------------------------
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*');
DynAPI.include("dynapi.gui.label.js")
DynAPI.include("dynapi.gui.list.js")
DynAPI.onLoad = function() {
var text = new Array ('Title','***','***','***','***');
debug = new DynLayer();
debug.moveTo(400,0);
debug.setSize(100,100);
debug.setBgColor('#999999');
this.document.addChild(debug);
list = new List()
list.setBgColor('#000000')
list.setWidth(150)
for(var n=1;n<text.length;n++)
{
list.add(text[n],n)
}
list.boldOnSelect(false)
this.document.addChild(list)
debug.setHTML(list.getHeight() + ' list<BR>')
}
Alexis Pellicier
Lycée Notre Dame de Sion
[EMAIL PROTECTED]
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help