Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic enter text for shape is bigger and bigger (Read 1853 times)
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
enter text for shape is bigger and bigger
Mar 11th, 2011 at 4:56pm
Print Post  
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.jpg

http://i133.photobucket.com/albums/q77/jessary_chang/project/2.jpg



Is there any suggestion?

Many thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: enter text for shape is bigger and bigger
Reply #1 - Mar 14th, 2011 at 7:21am
Print Post  
It looks like a bug. Reset InplaceEditFont from Page_Load as a workaround:

diagramView.InplaceEditFont = new Font("Arial", 12);
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint