John:
Thank you for taking the time to examine my post. The suggestion you
offered works well for truncating the text. However, I
was looking to simply wrap the text onto the next line and that
doesn't happen when I set the tabel-layout property to fixed for the
FlexTable
and change the width to 100%. After noting that I experienced
truncation instead of wrap, I resumed my original settings and tried
setting the cell width to an exact value. The solution works if a
space occurs in the text before the column width is exceeded. However,
if I type a continuous stream of characters without a space, the table
grows to accommodate the characters instead of wrapping to the next
row.
On Jan 19, 10:13 am, John LaBanca <
jlaba...@google.com> wrote:
> Set the "table-layout" CSS property to "fixed", then set the width of the
> table to 100%. The content should be truncated. You can also set the width
> of each column to an exact value.
>
> Thanks,
> John LaBanca
>
jlaba...@google.com
>
>
>
> On Wed, Jan 19, 2011 at 9:30 AM, JAppetta <
Jennifer.Appe...@sas.com> wrote:
> > I am attempting to limit the size of a FlexTable and its cell.
> > However, whenever an exceptionally large piece of text is added to the
> > cell, the table grows to accommodate this. Not a desirable action. I
> > want to limit the size of the table and have additional text be
> > displayed on following lines similar to as if I had newlines in the
> > text string.
>
> > Following the code that creates the main panel as well as the panels
> > added to the main panel. Note that an attempt is made to constrain the
> > width of the table (650 px) in the method and constrain the width of
> > the panel that contains the table in the .css (700 px).
>
> > Thanks for your help!
>
> > (Working with GWT 1.6)
>
> > ------------------------------------------------------------------------------------------------------------------------------------------------------------------
> >
google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs
cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >
http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text -
>
> - Show quoted text -