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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Diagram resize

Thread ID:

Created:

Updated:

Platform:

Replies:

101957 Dec 8,2011 08:14 PM UTC Dec 15,2011 04:05 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: DiagramWebControl
Truman Lackey
Asked On December 8, 2011 08:14 PM UTC

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?


Amsath Ali M [Syncfusion]
Replied On 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




Truman Lackey
Replied On December 13, 2011 11:32 PM UTC

I also set

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

to get this working.


Amsath Ali M [Syncfusion]
Replied On 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



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.

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

;