Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic adding text for node node height in changed after saving height and width (Read 1042 times)
reshma
Junior Member
**
Offline


I Love MindFusion!

Posts: 91
Joined: Jan 16th, 2018
adding text for node node height in changed after saving height and width
Nov 9th, 2020 at 2:43pm
Print Post  
it's only for multiline text ,I am adding one node adding "Testing data for capiton" text to that node
on nodeTextEdited event added belwo code, containerNode.resizeToFitText(MindFusion.Diagramming.FitSize.KeepWidth);
showing like before save image .

after that i am saving data for height and width
at the time of loading i am sending height and width to createnode

after create node adding below code also containerNode.resizeToFitText(MindFusion.Diagramming.FitSize.KeepWidth);
beacuse of above code node size is incresed
like after save image below

can you please help me i do not want change height of node as before saving is showing same way i have to show after save also?
help me as soon as
« Last Edit: Nov 10th, 2020 at 4:40am by reshma »  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: adding text for node node height in changed after saving height and width
Reply #1 - Nov 10th, 2020 at 6:45am
Print Post  
You must also save / restore the CaptionHeight value. Seems Y coordinate isn't restored properly too. Better use control's built-in serialization, e.g. toJson and fromJson methods.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint