Dear Sir/Madam,
My scenario is user can use ShapeListBox to drag and drop defined shape on DiagramView and save this diagram’s info by clicking save button.
In code behind, save function code is below,
Get the diagram string by VSDiagramView.Diagram.SaveToString()
And save this info in database
It’s a problem when clicking save button, and then user uses drag and drop the shape on diagram. It triggers onNodeCreated event show below,
function onNodeCreated(sender, args)
{
var node = args.getNode();
node.setTag(getUniqueId());
node.setText("");
args.getNode().getTextFormat().setWrapAtCharacter(false);
<%=VSDiagramView.AppletElement%>.getDiagramView().beginEdit(node);
}
When entering the text for the shape, it keeps getting bigger and bigger please see it in the following link
http://i133.photobucket.com/albums/q77/jessary_chang/project/1.jpghttp://i133.photobucket.com/albums/q77/jessary_chang/project/2.jpgIs there any suggestion?
Many thanks