Hi, I was successful for centralising the graph by using graph.scrollCellToVisible(root, true); But after doing this, i am not able to get the scrollbars, can anyone help for this...

Thanks in advance

asked 30 Apr '12, 05:57

hansie's gravatar image

hansie
55
accept rate: 0%


What is the value for the CSS overflow property of the graph container? If auto you might want to try scroll.

link

answered 04 May '12, 06:45

Gaudenz's gravatar image

Gaudenz ♦♦
9.9k127
accept rate: 38%

I have tried overflow : auto, overflow : scroll... Still not working. If i do so, cannot move the graph itself, The vertexes get hidden when i change this overflow attribute...

(04 May '12, 07:08) hansie

I get scrollbars when i use overflow : auto, but the graphbounds are not completely visible. And the graph size is restricted to some limit, I cannot see the complete graph even though i try to drag, I tried to extend the container width using graph.getGraphBounds().getWidth(), and the container is extended in width. But still not satisfied, the graph is not completely visible, just the container widths is extended but not the graph is shown completely inside the container. how to do this...?

(08 May '12, 02:47) hansie

Can you reproduce this with the helloworld.html example? If yes, what are the steps to reproduce the problem?

(09 May '12, 04:38) Gaudenz ♦♦

For this i can suggest to build an tree graph with atleast 100's of the right and left childnodes and can try viewing it. Not able to get the complete graph inside the container with scrollbars if overflow is set to auto... We can set back to overflow:hidden and can drag the graph to view full structure inside the container.

(09 May '12, 07:40) hansie
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×452
×19
×16

Asked: 30 Apr '12, 05:57

Seen: 425 times

Last updated: 09 May '12, 07:40

powered by BitNami OSQA