Graphics/PackageDiagramBuilder.py

changeset 4610
93732395fc1d
parent 4021
195a471c327b
child 4631
5c1a96925da4
equal deleted inserted replaced
4608:0d850eb60ea8 4610:93732395fc1d
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

eric ide

mercurial