Browse Source

Fixed a 1 pixel offset in the background panel used to draw the time axis.

v3_develop
jos 10 years ago
parent
commit
c6ef9a2b4c
3 changed files with 25157 additions and 25157 deletions
  1. +25154
    -25154
      dist/vis.js
  2. +1
    -1
      lib/timeline/Core.js
  3. +2
    -2
      lib/timeline/component/LineGraph.js

+ 25154
- 25154
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
lib/timeline/Core.js View File

@ -513,7 +513,7 @@ Core.prototype.redraw = function() {
// reposition the panels
dom.background.style.left = '0';
dom.background.style.top = '0';
dom.backgroundVertical.style.left = props.left.width + 'px';
dom.backgroundVertical.style.left = (props.left.width + props.border.left) + 'px';
dom.backgroundVertical.style.top = '0';
dom.backgroundHorizontal.style.left = '0';
dom.backgroundHorizontal.style.top = props.top.height + 'px';

+ 2
- 2
lib/timeline/component/LineGraph.js View File

@ -1114,7 +1114,7 @@ LineGraph.prototype._convertXcoordinates = function (datapoints) {
var toScreen = this.body.util.toScreen;
for (var i = 0; i < datapoints.length; i++) {
xValue = toScreen(datapoints[i].x) + this.width - 1;
xValue = toScreen(datapoints[i].x) + this.width;
yValue = datapoints[i].y;
extractedData.push({x: xValue, y: yValue});
}
@ -1144,7 +1144,7 @@ LineGraph.prototype._convertYcoordinates = function (datapoints, group) {
}
for (var i = 0; i < datapoints.length; i++) {
xValue = toScreen(datapoints[i].x) + this.width - 1;
xValue = toScreen(datapoints[i].x) + this.width;
yValue = Math.round(axis.convertValue(datapoints[i].y));
extractedData.push({x: xValue, y: yValue});
}

Loading…
Cancel
Save