222 widths.append(currentWidth) |
222 widths.append(currentWidth) |
223 heights.append(currentHeight) |
223 heights.append(currentHeight) |
224 |
224 |
225 # add in some whitespace |
225 # add in some whitespace |
226 width = width * whiteSpaceFactor |
226 width = width * whiteSpaceFactor |
227 rawHeight = height |
227 ## rawHeight = height |
228 height = height * whiteSpaceFactor - 20 |
228 height = height * whiteSpaceFactor - 20 |
229 verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0) |
229 ## verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0) |
|
230 verticalWhiteSpace = 40 |
230 |
231 |
231 sceneRect = self.umlView.sceneRect() |
232 sceneRect = self.umlView.sceneRect() |
232 width += 50.0 |
233 width += 50.0 |
233 height += 50.0 |
234 height += 50.0 |
234 swidth = width < sceneRect.width() and sceneRect.width() or width |
235 swidth = width < sceneRect.width() and sceneRect.width() or width |