Ahh! Thanks Leif for helping me test these features. 

I think  the setAutoSize() function should address the
issue that occurs in Mozilla when new layers are
added. If you should set the auto size feature to
SetAutoSize(true,true). The width of the layer should
work fine i both browsers.

In normal cases. Mozilla and Opera behaves differently
from IE when child layers are added.

--
Raymond Irving

--- Leif W <[EMAIL PROTECTED]> wrote:
> Testing in IE 6.0.2800.1106 and Mozilla 1.4 on
> Win2k.
> 
> Modified the add layers routines as follows.  Added
> the ability to create a
> variable number of layers, default 100 at a time. 
> Changed the static
> randomness ( * 200 ) to a dynamic number based on
> the
> lyr.getContentWidth/Height() (so it should expand
> without bounds at random).
> 
> In IE 6, I see the expected behaviour; the area gets
> bigger and bigger each
> time I add another 100 layers.  In Mozilla, the
> yellow layer (lyr) seems to
> grow only to lyr.getContentWidth() + lyr.getX() -
> 10, lyr.getContentHeight()
> + lyr.getY() - 10.  It stays at that size, and does
> not continue to randomly
> grow.
> 
> Also, another difference between the browsers: when
> setting the text size to
> zero length string.  In both Mozilla and IE, setting
> to zero makes the
> yellow layer "disappear".  Then, setting a text
> value again acts
> differently.  In IE, you see the yellow layer
> reappear with the text.  In
> Mozilla, the yellow layer stays invisible.  In
> either case, adding layers
> does cause the yellow layer to expand again, with
> the differences noted
> above.
> 
> Can't seem to get my mouse working in Linux for some
> odd reason.  Had it
> working fine about a week or two ago.  I can't test
> on Mozilla on Linux
> right now.
> 
> Leif
> 
> ===================
> Example page modifications:
> ===================
> 
> function addLayer(){
>     var x = Math.random() * ( lyr.getContentWidth()
> + lyr.getX() - 10 );
>     var y = Math.random() * ( lyr.getContentHeight()
> + lyr.getY() - 10 );
>     var l = new DynLayer(null,x,y,10,10,'green');
>     lyr.addChild(l);
> };
> 
> function addLayers(lyrs){
>     for ( var i = 0; i < lyrs; i++ )
>     {
>         addLayer();
>     }
> 
>     return(lyrs);
> };
> 
> From the FORM:
> 
>     <input type="button" onclick="return addLayers(
> this.form.lyrs.value );"
> value="Add Layers" />&nbsp;
>     <input type="text" name="lyrs" value="100" />
> 
> 
> 
> ----- Original Message ----- 
> From: "Raymond Irving" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 27, 2003 4:11 PM
> Subject: Re: [Dynapi-Dev] getContentWitdh/Height
> updates
> 
> 
> >
> > Has anyone tested these changes as yet?
> >
> > Ps. Sorry it's just that I really need to get this
> > section working so I can update cvs tomorrow with
> some
> > other new stuff.
> >
> > --
> > Raymond Irving
> >
> > --- Raymond Irving <[EMAIL PROTECTED]> wrote:
> > > Hello Everyone,
> > >
> > >
> > > I've managed to fix the getContentWidth/Height
> > > function to work correctly accross browsers
> > > ie6,opera7,moz,ns4. I've not tested in ie5 and
> ie4.
> > >
> > > Please see the attached file and please help me
> test
> > > these changes to see if they are working as they
> > > should.
> > >
> > > Please give your feedback before this Thursday
> (Aug
> > > 28, 2003)
> > >
> > > --
> > > Raymond Irving
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > > design software
> > > http://sitebuilder.yahoo.com
> >
> > > ATTACHMENT part 2 application/x-zip-compressed
> > name=dynapi3x.zip
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> >
> >
> >
>
-------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> >
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> >
> 
> 
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to