Browse Source

Merge pull request #1862 from raphink/content_width

Set content width to avoid overflow (Fix #1853)
codeClimate
Alex 8 years ago
parent
commit
2c78738313
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      dist/vis.js
  2. +1
    -0
      lib/timeline/component/item/RangeItem.js

+ 1
- 0
dist/vis.js View File

@ -22462,6 +22462,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.dom.content.style.right = contentStartPosition + 'px';
} else {
this.dom.content.style.left = contentStartPosition + 'px';
this.dom.content.style.width = 'calc(100% - ' + contentStartPosition + 'px)';
}
}
};

+ 1
- 0
lib/timeline/component/item/RangeItem.js View File

@ -259,6 +259,7 @@ RangeItem.prototype.repositionX = function(limitSize) {
this.dom.content.style.right = contentStartPosition + 'px';
} else {
this.dom.content.style.left = contentStartPosition + 'px';
this.dom.content.style.width = 'calc(100% - ' + contentStartPosition + 'px)';
}
}
};

Loading…
Cancel
Save