1

How to disallow particular cell to stretch ? "graph.setCellsResizable(false)" There are methods for all cells, how to apply it to a particular cell.

Egor Rezchikov
  • 431
  • 1
  • 4
  • 8

2 Answers2

1

You need to add resizable=0; to the style of that cell.

Artem Arkhipov
  • 7,025
  • 5
  • 30
  • 52
0

By adding custom styles we can stop resizing and moving of vertex

First initialize style object

var style = new Object();
style[mxConstants.STYLE_RESIZABLE] = '0';

Then add style in graph stylesheet

graph.getStylesheet().putCellStyle('resizableLock', style);

Then plot vertex with the custom style name

var v1 = graph.insertVertex(parent,'1233','Hello',20,50,100,100,'resizableLock');
Chetan Shelake
  • 656
  • 1
  • 6
  • 14