338 widths.append(currentWidth) |
338 widths.append(currentWidth) |
339 heights.append(currentHeight) |
339 heights.append(currentHeight) |
340 |
340 |
341 # add in some whitespace |
341 # add in some whitespace |
342 width = width * whiteSpaceFactor |
342 width = width * whiteSpaceFactor |
343 ## rawHeight = height |
|
344 height = height * whiteSpaceFactor - 20 |
343 height = height * whiteSpaceFactor - 20 |
345 ## verticalWhiteSpace = max( |
|
346 ## (height - rawHeight) / (len(generations) - 1.0 or 2.0), |
|
347 ## 40.0 |
|
348 ## ) |
|
349 verticalWhiteSpace = 40.0 |
344 verticalWhiteSpace = 40.0 |
350 |
345 |
351 sceneRect = self.umlView.sceneRect() |
346 sceneRect = self.umlView.sceneRect() |
352 width += 50.0 |
347 width += 50.0 |
353 height += 50.0 |
348 height += 50.0 |