Pop, 

you can also finetune this presentational behavior via css: white-space:
no-wrap / pre / auto

 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pops
Sent: mardi 28 août 2007 23:39
To: jQuery (English)
Subject: [jQuery] Re: DIV clipping or autofit question


HA!!!  That was it.

The JSON data did not have any spaces. I added a space before each field and
viola,  it is auto-fitted when you resize the window!

Amazing, freaking amazing. :-)

Thanks

--
HLS

On Aug 28, 4:27 pm, seedy <[EMAIL PROTECTED]> wrote:
> Is the text you are trying to display
> onereallylongstringthatdoesnotcontainanyspaces???
>
> I believe Firefox has a bug that prevents it from wrapping text that 
> does not have a space in it, I often run into that problem when trying 
> to display URL's in firefox.
>
>
>
> Pops wrote:
>
> > I have a <div  id="wcResult"> container.
>
> > Via $.ajax() the success and failure call back do this:
>
> >     $("#wcResult").text(xml.responseText);
>
> > to display the result.
>
> > If success, the server sends JSON formatted data.
> > If failure, like uthentication required, HTML is sent.
>
> > For the JSON data,  the div will not clip or autofit the content. It 
> > runs off the div border.
>
> > For the HTML, the div will autofit the content very nicely.
>
> > I am not completely sure the reason for this, but I believe its 
> > related to HTML :-)
>
> > Comments?
>
> > PS: This is only under FireFox.  IE fits them both.
>
> > --
> > HLS
>
> --
> View this message in
context:http://www.nabble.com/DIV-clipping-or-autofit--question-tf4343725s15
4...
> Sent from the JQuery mailing list archive at Nabble.com.

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.484 / Base de données virus: 269.12.10/977 - Date: 28/08/2007
16:29
 

Reply via email to