Browse Source

Set content width to avoid overflow (Fix #1853)

codeClimate
Raphaël Pinson 8 years ago
parent
commit
087b96b6cf
No known key found for this signature in database GPG Key ID: DF0A493B74BF771E
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