google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

State Diagrams drawn outside of viewable area #552

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create multiple state machines that together are too large to be displayed 
(example attached)

What is the expected output? What do you see instead?

State machine should be entirely rendered and should all be viewable when 
scrolling over. Instead, the last state diagram is cut off.

What version of the product are you using? On what operating system?

UMPLE 1.20.0.3989 inside Umple Online in Google Chrome 34 on Mac OSX 10.9

Please provide any additional information below.

Diagram was attempted to be viewed at 1650x1050 and 1920x1200, with the same 
results.

Original issue reported on code.google.com by ryanba...@gmail.com on 5 May 2014 at 2:25

Attachments:

GoogleCodeExporter commented 9 years ago
Adding screenshot to show issue

Original comment by ryanba...@gmail.com on 5 May 2014 at 3:02

Attachments:

GoogleCodeExporter commented 9 years ago
This is a longstanding problem caused by the need to create a fixed canvas 
before we know how big the diagram will be. Needs some analysis

Original comment by TimothyCLethbridge on 12 May 2014 at 5:56

GoogleCodeExporter commented 9 years ago
Note that this occurs whether or not the diagram is drawn on the right, or is 
generated below.

Original comment by TimothyCLethbridge on 29 May 2014 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by CraigBry...@gmail.com on 29 May 2014 at 8:20

GoogleCodeExporter commented 9 years ago
This is not actually a canvas size issue. The GraphViz output uses a nested svg 
tag as follows:

<svg> *redundant header code*
  <svg> *header code and diagram code*
  </svg>
</svg>

The cutoff problem is caused when the outer svg tag was specifying a smaller 
height and/or width than the inner one. The diagram seems to render fine if the 
outer svg tag is ignored. 

Original comment by CraigBry...@gmail.com on 30 May 2014 at 3:14

GoogleCodeExporter commented 9 years ago
This is fixed. Loading examples no longer resizes the umple canvas, instead, 
the inside of the canvas resizes as needed and scrollbars are used.

Original comment by CraigBry...@gmail.com on 30 May 2014 at 4:22