Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Nodes inside of containers zindex issue (Read 2977 times)
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Nodes inside of containers zindex issue
Apr 25th, 2013 at 9:51pm
Print Post  
If you have two shapenodes with the same zindex on the top level of the diagram, and they overlap, mindfusion will show the newest added node over the older one. The same is true if these nodes are containers.

However, suppose you have two containers with the same zindex, and inside each of them is a shapenode with the same zindex. If these containers overlap, the containers overlap correctly but the shapenodes inside do not appear layered correctly.

It seems like mindfusion should layer nodes inside of a container based first upon the parent container's z-index, with a secondary sort based upon the shapenode's zindex. In the screenshot attached, it seems like the bottom shapenode with zindex 41 should appear behind the container above rather than appear to be floating above it.

I have also attached an xml example from the demo app to demonstrate what I mean.
  

Nodes_in_Containers_zindex_issue.zip (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes inside of containers zindex issue
Reply #1 - Apr 26th, 2013 at 4:18pm
Print Post  
We have some feature requests for scrolling containers' content and clipping children if containers are resized smaller, so for next release our developers will rewrite rendering code to draw children from containers' Draw method instead from diagram.Draw, which should also make their Z indices local for containers. Until then, you could shift nodes down in diagram.Items until they are positioned right above their containers, to avoid overlapping any other containers.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes inside of containers zindex issue
Reply #2 - May 8th, 2013 at 12:53pm
Print Post  
In this version child nodes are drawn by their container, and Z index values are local to containers:
https://mindfusion.eu/_beta/fcnet_containers_z.zip

It also no longer changes ZIndex values automatically when dropping nodes inside containers, you might have to revise your code if it expects container's ZIndex to be lower than that of its children.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Re: Nodes inside of containers zindex issue
Reply #3 - May 9th, 2013 at 2:22pm
Print Post  
Thank you. We compile from source, do you have a source patch for this change? Or do you know when the next winforms source release is?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes inside of containers zindex issue
Reply #4 - May 9th, 2013 at 5:15pm
Print Post  
This has turned out to be a big change and we still have to fix a few use cases. We should have stable code later next week.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint