Cool. I'm going for it.
Michael Buerge wrote:
> hi jordi.
>
> i haven't fount my original mail (my mailbox is a bit messy too..)
> but this is the code i used for this.
>
> DynLayer.prototype.getContentWidth=function() {
> if (this.elm==null) return 0;
> else if (is.ns4) return this.doc.width;
> else if (is.ns6) {
> this.elm.style.width = "auto";
> var w = this.elm.offsetWidth;
> this.elm.style.width = this.w;
> return w;
> }
> else if (is.ie) return parseInt(this.elm.scrollWidth);
> else return 0;
> };
> DynLayer.prototype.getContentHeight=function() {
> if (this.elm==null) return 0;
> else if (is.ns4) return this.doc.height;
> else if (is.ns6) {
> this.elm.style.height = "auto";
> var h = this.elm.offsetHeight;
> this.elm.style.height = this.h;
> return h;
> }
> else if (is.ie) return parseInt(this.elm.scrollHeight);
> else return 0;
> };
>
> i don't know if it works in all circumstances (i didn't investigate much
> further) and its causes a short flickering if the content is smaller.
>
> i have an example on the web:
> http://n.ethz.ch/student/mibuerge/dynapi/examples/contentsize.htm
>
> btw: this examples works on the mac as well, but that solution is quite a
> hack. i posted this as well, if it is of any interest, i'll post it again.
>
> --
> Michael Buerge
>
> > Von: Jordi - IlMaestro - Ministral <[EMAIL PROTECTED]>
> > Antworten an: [EMAIL PROTECTED]
> > Datum: Thu, 15 Mar 2001 17:17:59 +0100
> > An: [EMAIL PROTECTED]
> > Betreff: [Dynapi-Dev] I can't find the mail with the NS6 contentsize fix !!!!
> >
> > Not that long ago someone submitted a mail with the NS content size fix. It
> > was something about setting a css property to AUTO, retrieve the content
> > size and leave it back to what it was. I'm going through my incredibly huge
> > and unorganized mailbox but I can't find it. I was about to implement it,
> > thus solving lots and lots of NS6 issues.
> >
> > Please anyone send it again.
> >
> > I'll see those Mac fixes in the meantime
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev
Re: [Dynapi-Dev] I can't find the mail with the NS6 contentsizefix !!!!
Jordi - IlMaestro - Ministral Thu, 15 Mar 2001 09:13:28 -0800
- Re: [Dynapi-Dev] I can't find the mail with ... Michael Buerge
- Jordi - IlMaestro - Ministral
