Skip to content

Commit e4b5c8c

Browse files
committed
fix special scissor case where there's only one panel
(cherry picked from commit a491656)
1 parent f5f879c commit e4b5c8c

File tree

2 files changed

+75
-2
lines changed

2 files changed

+75
-2
lines changed

src/traces/parcoords/lines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ module.exports = function(canvasGL, lines, canvasWidth, canvasHeight, dimensions
343343
colorClamp: colorClamp,
344344
scatter: scatter || 0,
345345
scissorX: I === leftmostIndex ? 0 : x + overdrag,
346-
scissorWidth: I === rightmostIndex ? 2 * panelSizeX + overdrag : panelSizeX + 1 + (I === leftmostIndex ? x + overdrag : 0)
346+
scissorWidth: I === rightmostIndex ? 2 * panelSizeX + overdrag + (I === leftmostIndex ? x + overdrag : 0) : panelSizeX + 1 + (I === leftmostIndex ? x + overdrag : 0)
347347
};
348348
}
349349

test/jasmine/tests/parcoords_test.js

Lines changed: 74 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)