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
close icon

Diagram resize

How do I resize the diagram and scrollbars if BoundaryContraints are off and a node is dragged outside of the current boundaries in any direction?


3 Replies

AA Amsath Ali M Syncfusion Team December 13, 2011 01:24 PM UTC

Hi Truman,

Thanks for your interest in Syncfusion products.

We suggest you to set the Diagram.Model’s ‘SizeToContent’ property to ‘true’ to achieve your requirement. Please refer the below code snippet.

Here is the code:
[C#]
//Indicates whether Model will be sized to its content, but not less than MinimumSize
diagram1.Model.SizeToContent = true;

Here is the Sample:
ForumSizeToContent2127102533.zip

Please try the above sample and let us know if you have any queries.

Regards,
Amsath Ali. M





TL Truman Lackey December 13, 2011 11:32 PM UTC

I also set

DiagramWebControl1.Style.Add("overflow", "auto");

to get this working.



AA Amsath Ali M Syncfusion Team December 15, 2011 04:05 AM UTC

Hi Truman,

Thanks for the update.

We are happy to hear that the issue has been resolved.
Please let us know if you require any further assistance.

Regards,
Amsath Ali. M



Loader.
Live Chat Icon For mobile
Up arrow icon