How to disallow particular cell to stretch ? "graph.setCellsResizable(false)" There are methods for all cells, how to apply it to a particular cell.
Asked
Active
Viewed 815 times
2 Answers
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