Sat, 08 Sep 2012 18:20:46 +0200
A few more Graphics fixes.
Graphics/PackageDiagram.py | file | annotate | diff | comparison | revisions | |
Graphics/UMLGraphicsView.py | file | annotate | diff | comparison | revisions |
--- 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
--- a/Graphics/UMLGraphicsView.py Sat Sep 08 17:36:14 2012 +0200 +++ b/Graphics/UMLGraphicsView.py Sat Sep 08 18:20:46 2012 +0200 @@ -383,8 +383,7 @@ """ Private method to handle the re-layout context menu entry. """ - scene = self.scene() - scene.clear() + self.scene().clear() self.relayout.emit() def __printDiagram(self):