Graphics/PackageDiagram.py

changeset 2028
30247d523fdb
parent 2027
144463496a54
child 2030
db11a2fe9bbc
equal deleted inserted replaced
2027:144463496a54 2028:30247d523fdb
232 widths.append(currentWidth) 232 widths.append(currentWidth)
233 heights.append(currentHeight) 233 heights.append(currentHeight)
234 234
235 # add in some whitespace 235 # add in some whitespace
236 width = width * whiteSpaceFactor 236 width = width * whiteSpaceFactor
237 rawHeight = height 237 ## rawHeight = height
238 height = height * whiteSpaceFactor - 20 238 height = height * whiteSpaceFactor - 20
239 verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0) 239 ## verticalWhiteSpace = max(
240 ## (height - rawHeight) / (len(generations) - 1.0 or 2.0),
241 ## 40.0
242 ## )
243 verticalWhiteSpace = 40.0
240 244
241 sceneRect = self.umlView.sceneRect() 245 sceneRect = self.umlView.sceneRect()
242 width += 50.0 246 width += 50.0
243 height += 50.0 247 height += 50.0
244 swidth = width < sceneRect.width() and sceneRect.width() or width 248 swidth = width < sceneRect.width() and sceneRect.width() or width

eric ide

mercurial