Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to disable Auto grow ContainerNode (Canvas mode) (Read 2716 times)
CrushJelly
Junior Member
**
Offline


I Love MindFusion!

Posts: 59
Joined: Oct 20th, 2016
How to disable Auto grow ContainerNode (Canvas mode)
Dec 9th, 2016 at 2:28pm
Print Post  
How to disable automatic Container resizing (auto grow) when node is dropped in it?

I tried these functions "resizeToFitChildren" and "setClipChildren", I set AutoGrow to false, but nothing happend.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to disable Auto grow ContainerNode (Canvas mode)
Reply #1 - Dec 12th, 2016 at 6:46am
Print Post  
At this time the JS library always resizes. For now you could set resizeToFitChildren to an empty function to disable that -

Code
Select All
ContainerNode.prototype.resizeToFit = ContainerNode.prototype.resizeToFitChildren; // in case you still want to fit from code
ContainerNode.prototype.resizeToFitChildren = function () { }; 



Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint