Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Vertical/ horizontal scroll bar is not moving till end (Read 2314 times)
reshma
Junior Member
**
Offline


I Love MindFusion!

Posts: 91
Joined: Jan 16th, 2018
Vertical/ horizontal scroll bar is not moving till end
Nov 9th, 2020 at 6:31am
Print Post  
Vertical/ horizontal scroll bar is not moving till end in Diagram layout, if parent node size is increased by adding child SE node inside and increased parent size.
eg.i have one parent node scope in side i have c1  node and i am adding node inside this c1 node and increasing scope size that time scroll is not showing for diagram
  

horizonatal_scroll_is_not_showing.png (Attachment deleted)
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Vertical/ horizontal scroll bar is not moving till end
Reply #1 - Nov 9th, 2020 at 11:57am
Print Post  
Try calling Diagram.resizeToFitItems.
  
Back to top
 
IP Logged
 
reshma
Junior Member
**
Offline


I Love MindFusion!

Posts: 91
Joined: Jan 16th, 2018
Re: Vertical/ horizontal scroll bar is not moving till end
Reply #2 - Nov 9th, 2020 at 12:24pm
Print Post  
while nodecreated event i added this above code but not working
eg.in above example if i am adding new node inside c4 and it is automatically increasing parent i.e scope size that's why it is not understanding diagram height or width.


when i am moving node by picking and drop that time it is showing proper scroll.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Vertical/ horizontal scroll bar is not moving till end
Reply #3 - Nov 10th, 2020 at 6:42am
Print Post  
resizeToFitItems applies new size only at the moment you call it, so I guess it's too early from nodeCreated event if you haven't also resized the container yet.

If you keep diagram's AutoResize property enabled, it will resize automatically anyway when containers grow in size when you drop items interactively. Not sure if it resizes automatically when you change containers from code - in that case call resizeToFitItems at the end of the code.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint