Hi, I need to create a Car with quite long text: Card card = new C

Hi,
I need to create a Car with quite long text:

    Card card = new Card(new Item("foo bar", "lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum"));

unfortunately the text description doesn’t wrap.

Is there any option to allow word wrap?

Ok, I fixed it by adding a custom class “ww” and a CSS:

.ww{
white-space:pre-wrap;
}

The class Item has a method withWhiteSpaceNoWrap() just for that.

Hi Johannes,
I tried to apply withWhiteSpaceNoWrap() method to Item class but the text content is still truncated.

Did you set the width to 100%?