Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Displayed part of the diagram after zooming (Read 1265 times)
lutz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Aug 26th, 2009
Displayed part of the diagram after zooming
Feb 17th, 2010 at 10:52am
Print Post  
Hi there,

is there a way to use a zooming functionality which is keeping the currently focussed item in the center of the view?

Another issue i have is, that if there is no item focussed at all, the zooming should keep the center of the view during zooming. Currently it is doing that only until the zoomed content reaches the left and top border of the DiagramView.

Thx in advance
Lutz
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Displayed part of the diagram after zooming
Reply #1 - Feb 17th, 2010 at 12:36pm
Print Post  
Hi Lutz,

Try calling the BringIntoView(item, centered) method after setting the Zoom property. When there isn't any item selected, you could use the ZoomToRect or BringIntoView(Rect) methods.

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