> From: Joachim Lundgren <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 30 Jan 2001 15:15:59 +0100
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Dev] ns6 w/h and browser advocacy

[...]

> But I got the right result by calling the function as the result of a timeout:
> setTimeout("alert("+o+".elm.offsetWidth)", 0);


this is also true for IE5 on the Mac, but you have to wait a little longer.
I did some tests some time ago and there wasn't a safe time, in which the
values would get updated. So I implemented a function (no DynAPI) that
stores the old values and then checks every few ms if the values have been
updated and if so, it calls whatever you like.
This was the only solution I could come up with, I haven't ever found a clue
on how it could be done differently. ...

the drawback is of course that you can't use return values to directly do
more stuff with it, there has to be another function that does the things
you want to do after you know the size of the content.
if this mechanism would be implemented into the DynAPI, it would change the
way one has to deal with getContentWidth/getContentHeight (maybe using a
"onThe_moment_our_contentsize_values_are_finally_correct"-event or something
like that)

i really need this feature in IE5/Mac too, so if nobody comes up with a
better solution, I will definitely implement it that way.

--
Michael Buerge

BTW: i have the impression that there arent any Mac-developers here. the
examples in this and last weeks snapshots mostly didn't work on the Mac and
there wasn't one post regarding that...
...and what about the bug i posted (elm problem)? can somebody reproduce it?
can somebody help me figuring it out?



_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to