Skip to main content
1-Visitor
Jul 9, 2014 3:47 PM UTC
Solved

Wrap text in a rotated cell

Hi guys,

I'm trying to wrap the text in a rotated cell. Is this possible?

I rotated the cell in the attributes but the text didn't split and the table gets too big.

Thanks

rdiazAnswer
5-Regular Member
Jul 31, 2014 11:30 PM UTC

Hi Bruno,

Unfortunately, this is a limitation of modifying a table in this manner.

You'll need to find a way of wrapping the text manually via the styling code if it's too large for the cell, or resize the cell. Other limitations can be seen in the article detailing this process:

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS38621

3 replies

rdiaz5-Regular MemberAnswer
5-Regular Member
Jul 31, 2014 11:30 PM UTC

Hi Bruno,

Unfortunately, this is a limitation of modifying a table in this manner.

You'll need to find a way of wrapping the text manually via the styling code if it's too large for the cell, or resize the cell. Other limitations can be seen in the article detailing this process:

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS38621

Translate
17-Peridot
Aug 1, 2014 9:34 AM UTC

You can, for example, set fixed cell width with APP code by adding the following to the APP source:

block.widthFlex = false;

block.width = "70mm";

or you can go a little further by getting the text length and setting the cell width based on this.

var currentNodeLength = formatting.evaluateXPath('string-length(.)');

block.width = currentNodeLength+"mm";Editor_Tabellenzelle_Drehung.JPG

Translate
bfriesen
18-Opal
Nov 16, 2016 7:55 PM UTC

Dmitry is this done in styler?? Does it work if you use fosi?

Thanks

Bryon

Translate