172 widths.append(currentWidth) |
172 widths.append(currentWidth) |
173 heights.append(currentHeight) |
173 heights.append(currentHeight) |
174 |
174 |
175 # add in some whitespace |
175 # add in some whitespace |
176 width = width * whiteSpaceFactor |
176 width = width * whiteSpaceFactor |
177 rawHeight = height |
177 ## rawHeight = height |
178 height = height * whiteSpaceFactor - 20 |
178 height = height * whiteSpaceFactor - 20 |
179 verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0) |
179 ## verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0) |
|
180 verticalWhiteSpace = 40 |
180 |
181 |
181 sceneRect = self.umlView.sceneRect() |
182 sceneRect = self.umlView.sceneRect() |
182 width += 50.0 |
183 width += 50.0 |
183 height += 50.0 |
184 height += 50.0 |
184 swidth = width < sceneRect.width() and sceneRect.width() or width |
185 swidth = width < sceneRect.width() and sceneRect.width() or width |