We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

My nodes are becoming smaller and smaller after every load

I have created an application using diagram
I am saving the nodes in a database and the user is able to load them afterwards
The problem is that after every load the nodes are becoming smaller and smaller
See attached video

Attachment: ProblematicDiagram_6bec2663.7z

7 Replies

RT Ramya Thirugnanam Syncfusion Team July 26, 2019 07:23 AM UTC

Hi George, 
 
We suspect that the reported issue occurs due to setting measurement unit for a diagram model. Could you please share us more details such as code example of measurement unit that you have set for a diagram model in detail? This will help us to serve you better. 
 
Regards, 
Ramya T 



GE George July 31, 2019 10:16 PM UTC

Sorry for the delay it took me a while to create a sample to satisfy your questions
Inside the attached folder you could find also the database (sqlite) which default path is at C: (you could change this)
So I tried to simplify it as much as possible.
The user creates a new label adds a richTextNode and save it to the DB
Then loads the label ->load the node -> but the node is not in the correct dimensions
Also I would like to have a document with original dimensions in mm (example 55x65 mm) and dimensions in pixel should be (217x256) 
We actually multiply the mm x 3.9454 

Also there is video showing the problem at https://www.screencast.com/t/cp8tX1pUa

Another problem is that the document is moving insede the diagram (check video) Is there something that I could do to stop it?
Please let me know if you could suggest anything

Attachment: GeneicoLabelSample_3aaba5fe.7z


SG Shyam G Syncfusion Team August 1, 2019 11:57 AM UTC

Hi George, 
 
Query 
Response 
Sorry for the delay it took me a while to create a sample to satisfy your questions
Inside the attached folder you could find also the database (sqlite) which default path is at C: (you could change this)
So I tried to simplify it as much as possible.
The user creates a new label adds a richTextNode and save it to the DB
Then loads the label ->load the node -> but the node is not in the correct dimensions
Also I would like to have a document with original dimensions in mm (example 55x65 mm) and dimensions in pixel should be (217x256) 
We actually multiply the mm x 3.9454 
 
Could you please confirm us whether you are converting millimeter to pixel before loading the node? If yes, we have inbuilt support to convert mm to pixel and you need not convert it manually. So please remove the conversion code in your sample. 
Another problem is that the document is moving insede the diagram (check video) Is there something that I could do to stop it?
Please let me know if you could suggest anything
 
Could you please confirm whether you have enabled the diagram.Model's SizeToContent property? If yes, the model size and position will be updated automatically based on the content. 
 
 
 
Regards, 
Shyam G 



GE George August 2, 2019 08:40 PM UTC

Thank you very much


SG Shyam G Syncfusion Team August 5, 2019 04:07 AM UTC

Hi George, 
Please let us know if you need further assistance on this. 
Regards, 
Shyam G 



GE George August 5, 2019 09:26 PM UTC

No thanks
you could close he ticket


SS Swetha Srikumar Syncfusion Team August 6, 2019 05:16 AM UTC

Hi George, 
Okay  Fine. 
Regards, 
Swetha 


Loader.
Up arrow icon