Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodeSelection rectangle moves in upward direction (Read 3518 times)
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
NodeSelection rectangle moves in upward direction
Dec 11th, 2009 at 11:21am
Print Post  
Hi,

Please find a sample for this on the support mail id subjected:"Selection Rectangle Issue".

The behaviour of diagram is set to Modify.

The issue are:

1. When any node, which is places near the top edge of diagram(Node 1 in sample),
if we try to draw a selection rectangle from some distance from top left of the node, the seletion rectangle is drawn in upward direction and the diagram also moves in upward direction.

What could be the issue.

2. The scroll bars do not come at center when the application starts.
[This issue is the same as in thread http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=125993575...


Please provide some inputs for the above two issues.

Thanks,
Priyanka




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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeSelection rectangle moves in upward direct
Reply #1 - Dec 11th, 2009 at 12:46pm
Print Post  
Hi,

1. I suppose it scrolls because auto-scrolling is enabled.

2. I can't see any scrollbars at startup:

  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: NodeSelection rectangle moves in upward direct
Reply #2 - Dec 11th, 2009 at 1:06pm
Print Post  
Hi Stoyo,

1. When I set AutoScroll="False" then also the same issue persist.

2. I am using 2.2.1.21626 version for diagram control and also OS is XP with SP3. In that case I am getting the scroll bar.

Thanks,
Priyanka



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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeSelection rectangle moves in upward direct
Reply #3 - Dec 11th, 2009 at 1:37pm
Print Post  
2. Ok, I could see scrollbars after removing WindowState=Maximized. But it seems they appear because the ScrollViewer always considers their area as occupied when deciding whether there's enough space, even if they would be hidden. You might use these values in SetZoom instead of the actual values:

var svWidth = scrollViewer.ActualWidth - 32;
var svHeight = scrollViewer.ActualHeight - 32;

What happens then is that the scrollbars are not shown as when maximized. I'm not sure if that's you wanted in the first place?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeSelection rectangle moves in upward direct
Reply #4 - Dec 11th, 2009 at 2:17pm
Print Post  
1. also seems to happen because of the AutoResize property, though it should only resize the diagram when drawing items and not when drawing the selection rectangle. I think this also explains the faster auto-scrolling to the top and left you reported before. It happens when both AutoScroll and AutoResize are enabled - resizing to the top or left in conjunction with a scrollviewer container also leads to some scroll effect, which is added to the auto-scroll step. We'll try to fix this for the next release.

Stoyan
  
Back to top
 
IP Logged
 
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Re: NodeSelection rectangle moves in upward direct
Reply #5 - Dec 11th, 2009 at 2:37pm
Print Post  
Hi,

Thanks for your replies.

But still Problem 2 persist.
I am not able to get the desired result with the proposed solution.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeSelection rectangle moves in upward direct
Reply #6 - Dec 11th, 2009 at 3:30pm
Print Post  
I guess I don't know what's your desired result then. In any case I've already sent you countless examples of centering the view, zooming around fixed points, zooming to fit and whatnot, can't you get the knack of it 8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint