Graphics/PackageDiagram.py

changeset 2028
30247d523fdb
parent 2027
144463496a54
child 2030
db11a2fe9bbc
--- a/Graphics/PackageDiagram.py	Sat Sep 08 17:36:14 2012 +0200
+++ b/Graphics/PackageDiagram.py	Sat Sep 08 18:20:46 2012 +0200
@@ -234,9 +234,13 @@
             
         # add in some whitespace
         width = width * whiteSpaceFactor
-        rawHeight = height
+##        rawHeight = height
         height = height * whiteSpaceFactor - 20
-        verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0)
+##        verticalWhiteSpace = max(
+##            (height - rawHeight) / (len(generations) - 1.0 or 2.0),
+##            40.0
+##        )
+        verticalWhiteSpace = 40.0
         
         sceneRect = self.umlView.sceneRect()
         width += 50.0

eric ide

mercurial