Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Minimum node size for container (Read 2512 times)
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Minimum node size for container
May 10th, 2013 at 7:13am
Print Post  
Hi Stoyan,

We are facing an issue with Container node size.

I am adding container node from the nodelistview and reduce its size below 50,40 (which is the minimum size for the container node). But when it reaches the server side it defaults to the size 50,40.

I tried setting the below code but no luck.
  _diagramView.Diagram.MinimumNodeSize = new SizeF(10, 10); in the server side.

Is there any client side method to override the size of the container?

I am saving the diagram xml in database for persisting. Coz of this issue reducing the size of container and saving is not giving the desired effect.

Is there is workaround for this?

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Minimum node size for container
Reply #1 - May 10th, 2013 at 12:48pm
Print Post  
Hi,

For the time being, set diagram.ContainerMinimumSize to a small value before loading from Json on server. We'll implement it in JavaScript too in one of the next releases.

Stoyan
  
Back to top
 
IP Logged
 
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Re: Minimum node size for container
Reply #2 - May 10th, 2013 at 2:05pm
Print Post  
hi Stoyan,

Ok. But which is the right place to set it? I am already setting this in the action method. But no luck.
Could you please provide some code for this?

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Minimum node size for container
Reply #3 - May 13th, 2013 at 9:57am
Print Post  
Try the version from https://mindfusion.eu/_beta/mvcdiag_ctrbounds.zip, it should deserialize container's Bounds regardless of its MinSize value.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint