From e20c03905d6f8418963bd3ce63040e2fe571a6da Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sat, 19 Dec 2015 19:35:22 +0100 Subject: Scatterplot: Corrected scaling & padding. --- scatterplot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scatterplot.cpp b/scatterplot.cpp index dd1f266..10e9765 100644 --- a/scatterplot.cpp +++ b/scatterplot.cpp @@ -174,8 +174,8 @@ QSGNode *Scatterplot::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) tx = ty = 0; } - m_sx.setRange(PADDING, width() - 2*PADDING); - m_sy.setRange(height() - 2*PADDING, PADDING); + m_sx.setRange(PADDING, width() - PADDING); + m_sy.setRange(height() - PADDING, PADDING); QSGNode *node = root->firstChild()->firstChild(); float t = m_animationEasing.valueForProgress(m_t); -- cgit v1.2.3