Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How does scrolling work (Read 1715 times)
Kuzya
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Joined: Dec 19th, 2011
How does scrolling work
Aug 8th, 2018 at 2:32pm
Print Post  
Hi,

We also use the complete available area of diagram
We also use a complete available area of diagrams. And we want to scroll right and down.

i use the following method:
this.diagram.setAutoResize(MindFusion.Diagramming.AutoResize.RightAndDown);
this.diagram.setAutoScroll(true);
and
  <div style="position: absolute; left: 0px; top: 33px; right: 0px; bottom: 0px; overflow: auto">

but scrolling does not work!
what am I doing wrong?

Regards,
Kuzya
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: How does scrolling work
Reply #1 - Aug 9th, 2018 at 9:12am
Print Post  
Hi,

Auto-scrolling works in my test, it happens when you drag a node near or outside the div's edges. Is this what's not working for you?

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Kuzya
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Joined: Dec 19th, 2011
Re: How does scrolling work
Reply #2 - Aug 9th, 2018 at 11:38am
Print Post  
Hi,

yeah, that's not working for me.

We take an element and move the element to the bottom or to the right behind the border. the scrollbars should move automatically.

We want to use the whole work surface.
In demo version (Flowcharter) the area is cut off from the right.

Regards,
Kuzya
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: How does scrolling work
Reply #3 - Aug 10th, 2018 at 9:08am
Print Post  
Hi,

Quote:
In demo version (Flowcharter) the area is cut off from the right.


Initial value of diagram.bounds.width is 210 in that sample, so if you view it in a larger browser window, the diagram will not cover all of the parent div. You could call diagram.setBounds with a large enough value to cover the div, converting pixels to current units using clientToDoc function. Check examples here showing that -

https://mindfusion.eu/Forum/YaBB.pl?num=1376539327/1#1
https://mindfusion.eu/Forum/YaBB.pl?num=1358356435/4#4

Quote:
We take an element and move the element to the bottom or to the right behind the border. the scrollbars should move automatically.


AutoScroll and AutoResize are enabled by default, and that works in same flowcharter example. If it's not working for you, please let me know browser version. If flowcharter auto-scrolls but your project does not, please attach a test page with same DOM setup as yours to reproduce it.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint