I am currently using:

graph.cellsFolded(new Object[] { cell }, true, false);

to fold a cell. The question is: how can I set the size of the collapsed cell? (by default it becomes a square)

I have found graph.setCollapseToPreferredSize(bool); - setting this to false the folding of cells simply does not happen.

asked 17 Mar '12, 13:03

fusio's gravatar image

fusio
91211
accept rate: 11%

edited 15 Aug '12, 04:53

David's gravatar image

David
4.9k21831


cell.getGeometry().setAlternateBounds(new mxRectangle(0,0, width, height));
link

answered 17 Mar '12, 14:54

fusio's gravatar image

fusio
91211
accept rate: 11%

edited 15 Aug '12, 04:53

David's gravatar image

David
4.9k21831

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×194
×66
×10
×8

Asked: 17 Mar '12, 13:03

Seen: 1,978 times

Last updated: 15 Aug '12, 04:53