Wow! I found the 'fix' for this bug where I least expected.
We use a doctype declaration:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd";>

This apparently prevents setSize() and setHeight() from working correctly, 
but setWidth() still works. Ugh.

I changed this to:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

and things seem to work as expected. Took a while to track that down, heh.

-James


>From: "James Musick" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [Dynapi-Help] setSize() works differently on Netscape 6.2?
>Date: Wed, 25 Sep 2002 21:18:55 +0000
>
>
>I'm trying to resize something, and it works nicely on IE.  On netscape, 
>however it seems that if sizing doesn't work if it's after the addChild 
>(which presumably fires some event?).
>
>//myTree.setSize(400,400);
>DynAPI.document.addChild(myTree);
>myTree.setSize(400,400);
>
>So the above code works on IE...but not on Netscape 6.2
>If I use the first setSize (prior to addition of object) and comment out 
>the second setSize() it works on Netscape.
>
>The reason I don't just use the first one above is because this is only an 
>example that shows the resize not working...in reality I'm trying to have a 
>layer get bigger when a child layer is added to it. So I'm doing something 
>more like
>this.items[i].setSize(100,100) //child
>this.setSize(200,200)  //parent
>
>and the child is being added/sized correctly, but the parent size isn't 
>being inreased.
>
>Any suggestions?
>
>Thank you,
>-James
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dynapi-Help mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/dynapi-help




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to