From 087b96b6cf990c09b008c33667de4a74966678fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Sat, 14 May 2016 17:41:09 +0200 Subject: [PATCH] Set content width to avoid overflow (Fix #1853) --- dist/vis.js | 1 + lib/timeline/component/item/RangeItem.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/vis.js b/dist/vis.js index 538e2733..bd99a541 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -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)'; } } }; diff --git a/lib/timeline/component/item/RangeItem.js b/lib/timeline/component/item/RangeItem.js index 097501a7..694d21b6 100644 --- a/lib/timeline/component/item/RangeItem.js +++ b/lib/timeline/component/item/RangeItem.js @@ -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)'; } } };