i have following problem with JGraphX- for Java: although i set "setMaximumGraphBounds" and "setMinimumGraphSize" im still able to drag a cell to the left beyond the visible space so my graph gets automatically bigger and the horizontal scrollbar gets smaller so that i can scroll to the new "offscreen"-space. when i drag the cell back my graph gets automatically smaller to the size i have set with "setMaximumGraphBounds".

how can i forbid this behavior? which methode i can use to switch off the cell-drag-beyound-graphbounds functionallity. i tried allready "setAllowNegativeCoordinates(false)" which works great but only to the left direction.

asked 05 Jul '11, 03:41

Racer777's gravatar image

accept rate: 0%

edited 18 Jan '13, 06:30

David's gravatar image


The question has been closed for the following reason "http://forum.jgraph.com/questions/3338/how-to-stop-the-graph-from-auto-expanding" by David 14 Feb '12, 21:55

graph.maximumGraphBounds = new mxRectangle(0, 0, requiredWidth, requiredHeight);


answered 14 Feb '12, 20:01

punithsn's gravatar image

accept rate: 41%

Follow this question

By Email:

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



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



Asked: 05 Jul '11, 03:41

Seen: 2,413 times

Last updated: 18 Jan '13, 06:30