aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-10-07 09:58:21 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-10-07 09:58:21 -0300
commit453f915ea23fb2ac6191422fce78928606291018 (patch)
tree7831917c69a52bb4f9c270351c431b3ed930e535
parentf73d318541f256d974e1e170feea2fc90113495f (diff)
Small improvement in autoscroll
-rw-r--r--historygraph.cpp2
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();