8000 Range slider second iteration (part 1) by etpinard · Pull Request #962 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Range slider second iteration (part 1) #962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Oct 6, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
book-keep range slider id
  • Loading branch information
etpinard committed Oct 6, 2016
commit b1155a3116f567288a75c4fc775580ba90049dff
3 changes: 2 additions & 1 deletion src/components/rangeslider/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ module.exports = function(gd) {
graphSize = fullLayout._size,
domain = axisOpts.domain;

opts._id = constants.name + axisOpts._id;
opts._width = graphSize.w * (domain[1] - domain[0]);
opts._height = (fullLayout.height - margin.b - margin.t) * opts.thickness;
opts._offsetShift = Math.floor(opts.borderwidth / 2);
Expand Down Expand Up @@ -123,7 +124,7 @@ module.exports = function(gd) {

var bb = axisOpts._boundingBox ? axisOpts._boundingBox.height : 0;

Plots.autoMargin(gd, constants.name + axisOpts._id, {
Plots.autoMargin(gd, opts._id, {
x: 0, y: 0, l: 0, r: 0, t: 0,
b: opts._height + fullLayout.margin.b + bb,
pad: 15 + opts._offsetShift * 2
Expand Down
0