Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ContainerNode not shifting down the other nodes (Read 1637 times)
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
ContainerNode not shifting down the other nodes
Nov 4th, 2009 at 7:24am
Print Post  
I have a designer
in the designer if the user put a container and close it
then put another shapes
if the user open the container (expand it) it will open over the down controls

is there any facility to let the use shift the shapes down it when it expands
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  ContainerNode not shifting down the othe
Reply #1 - Nov 4th, 2009 at 11:01am
Print Post  
You could handle the ContainerUnfolded event and shift the nodes down from the handler. To shift the nodes, first sort them by their Y position using a Comparer similar to the one shown here, but changed for Y:

http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=124594289...

Then for all nodes that are after the container in the sorted list, add the container's expanded height to their Y position.

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