This is still far better than anything i have come across. Though i was not considering such a thing due to the serious performance hit. Basically, I use static widths when in mozilla. It suck, I know.. But it still blows IE out of the watter
----- 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]/ > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.726 / Virus Database: 481 - Release Date: 7/22/04 ------------------------------------------------------- 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]/