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-tf4343725s154...
> Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to