Can anyone suggest a way to make this workaround useful within the DynAPI? Maybe as a behavior which can be turned on or off, and perhaps some conditional parameters to guess when there's not too much content, otherwise skip this if there's too much? Benchmarks might be useful for a performance impact analysis. Maybe get some data points and generate a graph to better illustrate in documentation the implications of using this option.
Leif ----- Original Message ----- From: "Michael Bürge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 26, 2004 1:46 PM Subject: Re: [Dynapi-Dev] ViewPane example is now on steroids. > hi there > > see below... > > > Tho, not working in 1.4 means they finally fixed the content-width bug (must > > missed that in the changelogs) > > > > Unfortunatly there is no way to work around this bug in 1.4 > > NOT TRUE! > > 1. get the content of the layer in question (with innerHTML-property) > 2. write content into a dummy-layer that is not nested and not visible > (ie positioned at (-1000,-1000) ) > 3. query the scrollWidth of the dummy-layer > 4. delete content of the dummy-layer (this is important, since otherwise > you may end up having dom-elements with duplicate id) > > voila! > > ok, it's an ugly hack, but it works well, as long as there isn't too > much content (a lot of content will make this very slow). > > > hope this helps! > > greets, > michael > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/[EMAIL PROTECTED]/ > > ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/