Hi, \nis it possible to move the canvas?

\n

problem: after performing layouting algorithms sometimes my objects are positioned outside of the available canvas. i'd like to press the right mouse button and move the canvas to make them visible.

\n

thanks for the help!

asked 08 Sep '11, 00:11

mrhappy's gravatar image

mrhappy
12
accept rate: 0%

graph.setPanning(true)

(08 Sep '11, 04:31) Gaudenz

graph.setPanning(true)

link

answered 08 Sep '11, 04:31

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

well, but if mxRubberband has been set on mxGraphComponent, it's not possible to move the canvas by the right mouse button - only by shft + ctl + left mouse button.\nmaybe it's possible to disable handling of right mouse button in mxRubberband?

(08 Sep '11, 04:45) mrhappy

Yes, in JavaScript it uses right-click, in Java you can override mxGraphComponent.isPanningEvent to change the behaviour.

(08 Sep '11, 06:15) Gaudenz
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:

×22
×11

Asked: 08 Sep '11, 00:11

Seen: 1,687 times

Last updated: 08 Sep '11, 06:15