Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Browser's horizontal scrollbar is missing (Read 2695 times)
LGK
YaBB Newbies
*
Offline



Posts: 30
Location: Boston, MA
Joined: Mar 29th, 2012
Browser's horizontal scrollbar is missing
Jun 15th, 2012 at 9:12pm
Print Post  
I have a very large graph for which I have not defined a Width or a Height because I want it to occupy the entire document (rather than a DIV), and I want to use the browser's scrollbars to explore the graph (rather than scrollbars on a DIV). But in that case I only get a vertical scrollbar - the horizontal browser scrollbar is not there (see the attached screenshot).

I tested this in both IE and Chrome.

This is the definition of my DiagramView:

Code
Select All
<ndiag:DiagramView ID="PFVDiagram"
    Behavior="DoNothing"
    ShowScrollbars="false"
    ClientSideMode="ImageMap"
    runat="server">
    <Diagram
        DefaultShape="Rectangle"
        LinkHeadShapeSize="2"
        LinkHeadShape="Arrow"
        LinkCrossings="Arcs"
        ShadowsStyle="None" />
</ndiag:DiagramView>
 



If I set ShowScrollbars="true", then I get an internal horizontal scrollbar (rather than the browser one)...What am I missing?

Thank you!
  

No_horizontal_scrollbar_in_browser.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Browser's horizontal scrollbar is missing
Reply #1 - Jun 18th, 2012 at 7:52am
Print Post  
I'm not sure how browsers determine the DIV's width in that case. However, you can set it explicitly to the diagram's width from the Page_Load handler while keeping ShowScrollbars disabled; then you will get the browser's horizontal scrollbar:

Code
Select All
diagramView.Width = diagramView.DocToClient(diagram.Bounds).Width; 



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



Posts: 30
Location: Boston, MA
Joined: Mar 29th, 2012
Re: Browser's horizontal scrollbar is missing
Reply #2 - Jun 18th, 2012 at 12:10pm
Print Post  
This is exactly what I was looking for! Thank you, Stoyan.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint