Hi!

szyslak wrote:
> 
> I'm working with my customized/reduced version of DynAPI. Currently
> when I create a dynlayer for NS6 (or compatible) browser I do the
> following to get its inner width (I mean the width of its contents):
> 
>   this.css.height = this.css.width = 'auto';
>   this.w = this.elm.offsetWidth;
>   this.h = this.elm.offsetHeight;
> 
> This is basically the same as getContentWidth function does. The
> problem is that NS6 reports stranges values. Sometimes it works,
> sometimes it doesn't. 
> I read the faq and noticed this bug is known and recommended to use a
> setTimeout. 

Forget the setTimeout. Sometimes it works, sometimes it doesn't.
It is not an DynAPI bug.
Mozilla has problems to compute width and height of nested absolutely 
positioned layers. A few months ago they had a bug report in bugzilla
and one of the programmers changed a lot of code and closed the bug.
...But the bug is still there ;-)
I will prepare a testcase and a new bugreport next days and then we 
will see.

Bye,   Thomas.

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/

Reply via email to