Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic TreeLayout.Arrange does not ignore invisible boxes (Read 1741 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
TreeLayout.Arrange does not ignore invisible boxes
Jun 23rd, 2022 at 2:49pm
Print Post  
My main chart boxes have other small boxes attached to them using the ShapeNode.SubordinateGroup feature. The software can hide these extra boxes by setting Visible to false - this reduces screen clutter for users. However when I call TreeLayout.Arrange() the extra space I hoped to save is not closed up - the size of the invisible boxes is taken into account. Is this correct? If it's a breaking change to change the functionality could we have a optional parameter to the .Arrange() function to ignore invisible boxes?

pic4 shows the situation before boxes and made invisible and pic5 is after they are made invisible and .Arrange() called. The spacing is the same.

DavidL
  

pic4.PNG ( 11 KB | 78 Downloads )
pic4.PNG
pic5.PNG ( 5 KB | 75 Downloads )
pic5.PNG
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: TreeLayout.Arrange does not ignore invisible boxes
Reply #1 - Jun 23rd, 2022 at 4:34pm
Print Post  
If all attached nodes are hidden, you could run TreeLayout with KeepGroupLayout set to false. If you hide only some of them, try also changing their position to be inside main node's Bounds while invisible.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: TreeLayout.Arrange does not ignore invisible boxes
Reply #2 - Jun 23rd, 2022 at 4:41pm
Print Post  
or you might toggle TreeLayout.NodeDistance between full and decluttered values.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: TreeLayout.Arrange does not ignore invisible boxes
Reply #3 - Jun 24th, 2022 at 3:16pm
Print Post  
The first solution works well. I move the invisible icons behind the main box when hiding them and move them back when making them visible.

Many Thanks
DavidL
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint