Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramView does not show horizontal scrollbar. (Read 1949 times)
Fred
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: May 8th, 2013
DiagramView does not show horizontal scrollbar.
Jan 2nd, 2014 at 1:40pm
Print Post  
Hello,

I use a DiagramView to show a diagram in a Windows Form (Dock=Fill).

The Diagram associated with the DiagramView is "arranged" through a SpringLayout.

The Diagram is larger and higher than the Form. The DiagramView shows a vertical scrollbar bu no horizontal scrollbar even though DiagramView.Scrollbars=true and DiagramView.HScrollBar.Visible=true.

Is this a bug? The version is 6.0.2.23785

Thank you in advance for any help
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramView does not show horizontal scrollbar.
Reply #1 - Jan 2nd, 2014 at 2:00pm
Print Post  
Hi,

Try calling Diagram.ResizeToFitItems() after SpringLayout.Arrange(). The horizontal scrollbar range depends on the width of Diagram.Bounds, and ResizeToFitItems will make Bounds large enough to fit all nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Fred
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: May 8th, 2013
Re: DiagramView does not show horizontal scrollbar.
Reply #2 - Jan 2nd, 2014 at 2:27pm
Print Post  
Hello Stoyan,

Many thanks for your answer. This SOLVED my problem.

Best regards

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