Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic IE losing scroll position (Read 3165 times)
cgonz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Aug 26th, 2010
IE losing scroll position
Aug 26th, 2010 at 8:06pm
Print Post  
We are about to buy the NetDiagram control, but there is just one issue that stop us from doing so. In IE when the canvas is big enough that it does not fit in the screen when the user clicks in a node the whole screen scrolls back to the top left corner without raising any event (and does not select the node either). In Firefox it is working properly without any issues. What am I missing?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: IE losing scroll position
Reply #1 - Aug 26th, 2010 at 8:56pm
Print Post  
What version of IE are you using? I'm trying that with the "Postback" sample project in IE8 and the scroll position is preserved correctly. Could you check if that sample works in your IE version?
  
Back to top
 
IP Logged
 
cgonz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Aug 26th, 2010
Re: IE losing scroll position
Reply #2 - Aug 27th, 2010 at 4:00pm
Print Post  
We are running IE 8. I tried the PostBack sample and it is working fine. However, when we added the InteractivityExtender, it seems to overlay a layer on top of the diagram that causes the scrolling position to reset to the top left any time you click on it, and no events are triggered.

To reproduce this in the PostBack example, you can set the height of the DiagramView to 1200px, add the InteractivityExtender, and then scroll (the outer scroll bar) to the bottom of the page and try selecting a node.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: IE losing scroll position
Reply #3 - Aug 27th, 2010 at 4:11pm
Print Post  
Are you setting DiagramView.Height or Diagram.Bounds.Height to 1200? We don't have any code to restore the scroll position of the browser window, which would show scrollbars if the view is very large. The control only restores the scroll position of the DiagramView's div, which is made scrollable when Diagram.Bounds is large.
  
Back to top
 
IP Logged
 
cgonz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Aug 26th, 2010
Re: IE losing scroll position
Reply #4 - Aug 27th, 2010 at 6:39pm
Print Post  
By setting the DiagramView.Height to a value within the bounds of the screen, this issue is eliminated because the outer scrollbar is no longer displayed. This is a still a weird behaviour from the control but this is a workaround we are willing to use.

Thanks for your help.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint