diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-10-07 09:58:21 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-10-07 09:58:21 -0300 |
commit | 453f915ea23fb2ac6191422fce78928606291018 (patch) | |
tree | 7831917c69a52bb4f9c270351c431b3ed930e535 | |
parent | f73d318541f256d974e1e170feea2fc90113495f (diff) |
Small improvement in autoscroll
-rw-r--r-- | historygraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/historygraph.cpp b/historygraph.cpp index 17bec38..1a1a579 100644 --- a/historygraph.cpp +++ b/historygraph.cpp @@ -198,7 +198,7 @@ QSGNode *HistoryGraph::createNodeTree() if (rect.x() < 0) { m_viewportTransform.translate(rect.x(), 0); } else if (rect.x() + rect.width() > width()) { - m_viewportTransform.translate(width() - (rect.x() + rect.width()), 0); + m_viewportTransform.translate(width() - (rect.x() + rect.width()) - margin, 0); } } else { m_viewportTransform.setToIdentity(); |