Try this:

spalte1.setSize(120, DynAPI.document.getHeight()-10);

if you want the width instead, use the getWidth() method.

/martin

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> Mark Grotegerd
> Sent: den 26 november 2001 23:10
> To: [EMAIL PROTECTED]
> Subject: [Dynapi-Help] positioning the layer
> 
> 
> Newbie-Question:
> 
> How can I define a,b,x and y in this code:
> 
>    DynAPI.onLoad=function() {
>     spalte1=new DynLayer()
>     spalte1.setSize(a,b)
>     spalte1.setBgColor('#000080')
>     spalte1.moveTo(x,y)
>     DynAPI.document.addChild(spalte1)
> 
> I want to use the available inner height and width of the browser for
> positioning the layer,
> for example
> 
> spalte1.setSize(120, "max avail inner height"-10)
> 
> Is this possible?
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-help
> 


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to