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]/

Reply via email to