Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ZoomToFit incorrect (Read 1605 times)
SCooper
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Aug 10th, 2010
ZoomToFit incorrect
May 5th, 2011 at 9:15am
Print Post  
Hi there!
We are using a DiagramView with a Diagram
This diagram has a background of fixed size that is Strecth. Doing a ZoomToFit for first time is well done and adjust the diagram according to the background. Doing the ZoomToFit again, it gets rid of the background a put the ScrollY to the first element inside the diagram diffrent from the Background
Doing a ScroolY=0; create issues sometimes depending on the screen resolution
Any other solution?
Thank you
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ZoomToFit incorrect
Reply #1 - May 5th, 2011 at 10:22am
Print Post  
Hi,

If you mean a background image, ZoomToFit fits only the diagram items and does not consider the background at all. Use ZoomToRect(imageRect) or ZoomToRect(diagram.Bounds) instead.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint