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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

My nodes are becoming smaller and smaller after every load

Thread ID:

Created:

Updated:

Platform:

Replies:

146213 Jul 25,2019 08:18 PM UTC Aug 6,2019 05:16 AM UTC WinForms 7
loading
Tags: Diagram
George
Asked On July 25, 2019 08:18 PM UTC

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

Ramya Thirugnanam [Syncfusion]
Replied On 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 


George
Replied On 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

Shyam G [Syncfusion]
Replied On 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 


George
Replied On August 2, 2019 08:40 PM UTC

Thank you very much

Shyam G [Syncfusion]
Replied On August 5, 2019 04:07 AM UTC

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


George
Replied On August 5, 2019 09:26 PM UTC

No thanks
you could close he ticket

Swetha Srikumar [Syncfusion]
Replied On August 6, 2019 05:16 AM UTC

Hi George, 
Okay  Fine. 
Regards, 
Swetha 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon