Commit 2919dc61 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: set overview range slider right border to correct value



Change-Id: I64e721e11aa1a8d7a678f0f0a4573c7f7a885380
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 16ebc762
......@@ -148,8 +148,10 @@ Canvas {
newX = canvas.width - rangeMover.rangeWidth;
if (newX < rangeMover.rangeLeft) {
// Changing left border will change width, so precompute right border here.
var right = newX + rangeMover.rangeWidth;
rangeMover.rangeLeft = newX;
rangeMover.rangeRight = newX + rangeMover.rangeWidth;
rangeMover.rangeRight = right;
} else if (newX > rangeMover.rangeLeft) {
rangeMover.rangeRight = newX + rangeMover.rangeWidth;
rangeMover.rangeLeft = newX;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment