This is the problem I reported in mozilla oh-so-long ago..
It is a bug in the browser..
you will find that the content height is returned as expected..
which does tell us it is a bug.

I reported the bug to the mozilla bugzilla..
So it's a matter of time..
unless one of you wants to dive into the mozilla code....

I've thought of it.. but I expect it would be a full-time project just
to get comfortable working in their code-base


Doug Melvin
[EMAIL PROTECTED]
(613) 355-3600
----- Original Message -----
From: "Leif W" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 6:13 PM
Subject: Re: [Dynapi-Dev] getContentWitdh/Height updates


> 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]/
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003



-------------------------------------------------------
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