tools: fix treemap bounding box

This commit is contained in:
Marcin Kurczewski 2023-09-30 01:03:35 +02:00
parent 8f8d182e76
commit 4df50d226f
No known key found for this signature in database
GPG Key ID: CC65E6FD28CAE42A

View File

@ -466,14 +466,14 @@ class FunctionTreeGrid(Container):
box = Box( box = Box(
x1=ZERO, x1=ZERO,
y1=ZERO, y1=ZERO,
x2=GRID_WIDTH, x2=GRID_WIDTH + GRID_SQUARE_MARGIN,
y2=( y2=(
( (
(len(all_functions) + GRID_MAX_SQUARES - 1) (len(all_functions) + GRID_MAX_SQUARES - 1)
// GRID_MAX_SQUARES // GRID_MAX_SQUARES
) )
* (GRID_SQUARE_SIZE + GRID_SQUARE_MARGIN) * (GRID_SQUARE_SIZE + GRID_SQUARE_MARGIN)
), ) + GRID_SQUARE_MARGIN,
) )
for result in squarify( for result in squarify(