Skip to content

Commit

Permalink
Chartspace scene resize when spanning into empty column
Browse files Browse the repository at this point in the history
.. when you extend a tile across an empty column to the right
   the scene was not being resized to take this into account.
  • Loading branch information
liversedge committed Jul 28, 2021
1 parent 360bc29 commit 0ffca01
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Gui/ChartSpace.cpp
Expand Up @@ -482,7 +482,13 @@ ChartSpace::updateGeometry()
}

// set the scene rectangle, columns start at 0
sceneRect = QRectF(0, 0, columns[column] + x + SPACING, maxy);
// bearing in mind we may have a spanner that extends across
// columns, so lets check that too?
x = x + columns[column];
foreach(QRectF spanner, spanners) {
if (spanner.topRight().x() > x) x = spanner.topRight().x();
}
sceneRect = QRectF(0, 0, x + SPACING, maxy);

if (animated) group->start();
}
Expand Down

0 comments on commit 0ffca01

Please sign in to comment.