How do I scroll the center of the graph to the center of my display container with no scroll bars?

asked 21 Apr '11, 02:48

David's gravatar image

David
4.9k21831
accept rate: 47%

edited 21 Apr '11, 02:49


graph.view.setTranslate(-bounds.x - (bounds.width - container.clientWidth) / 2,
      -bounds.y - (bounds.height - container.clientHeight) / 2);
link

answered 21 Apr '11, 02:49

David's gravatar image

David
4.9k21831
accept rate: 47%

edited 26 Jun '12, 16:26

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:

×228
×11
×8
×5

Asked: 21 Apr '11, 02:48

Seen: 4,067 times

Last updated: 26 Jun '12, 16:26