eric6/Graphics/PackageDiagramBuilder.py

changeset 8217
385f60c94548
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8216:6a042a54e0f7 8217:385f60c94548
326 currentHeight = 0 326 currentHeight = 0
327 327
328 for rect in generation: 328 for rect in generation:
329 if rect.bottom() > currentHeight: 329 if rect.bottom() > currentHeight:
330 currentHeight = rect.bottom() 330 currentHeight = rect.bottom()
331 currentWidth = currentWidth + rect.right() 331 currentWidth += rect.right()
332 332
333 # update totals 333 # update totals
334 if currentWidth > width: 334 if currentWidth > width:
335 width = currentWidth 335 width = currentWidth
336 height = height + currentHeight 336 height += currentHeight
337 337
338 # store generation info 338 # store generation info
339 widths.append(currentWidth) 339 widths.append(currentWidth)
340 heights.append(currentHeight) 340 heights.append(currentHeight)
341 341
342 # add in some whitespace 342 # add in some whitespace
343 width = width * whiteSpaceFactor 343 width *= whiteSpaceFactor
344 height = height * whiteSpaceFactor - 20 344 height = height * whiteSpaceFactor - 20
345 verticalWhiteSpace = 40.0 345 verticalWhiteSpace = 40.0
346 346
347 sceneRect = self.umlView.sceneRect() 347 sceneRect = self.umlView.sceneRect()
348 width += 50.0 348 width += 50.0

eric ide

mercurial