From: Matthew A. S. <ms...@go...> - 2001-01-31 04:02:26
|
I have to support the macintosh as well, though because I get very little responses on this list I usually have to limit myself to the things that I can get to work. Not being able to get the content size has been a very irritating problem for me. Usually I end having to set sizes manually which can cause things to look a little wierd on some of the browsers. M. -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Michael Burge Sent: Tuesday, January 30, 2001 3:38 PM To: dyn...@li... Subject: Re: [Dynapi-Dev] ns6 w/h and browser advocacy > From: Joachim Lundgren <lu...@ho...> > Reply-To: dyn...@li... > Date: Tue, 30 Jan 2001 15:15:59 +0100 > To: dyn...@li... > 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 Dyn...@li... http://lists.sourceforge.net/lists/listinfo/dynapi-dev |