From 77df99c29a58f697e84e3e36f04f14c0c66ce32d Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 8 Jul 2015 10:41:47 +0200 Subject: [PATCH] Fixed #1001: First element of group style being cut --- HISTORY.md | 4 ++++ lib/timeline/component/Group.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index c23c12f1..e0b686a0 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -12,6 +12,10 @@ http://visjs.org - Do not change `backgroundColor` when not provided in options. Thanks @ozydingo. +### Timeline + +- Fixed #1001: First element of group style being cut. + ## 2015-07-03, version 4.4.0 diff --git a/lib/timeline/component/Group.js b/lib/timeline/component/Group.js index 51e32ee2..d10c3ba2 100644 --- a/lib/timeline/component/Group.js +++ b/lib/timeline/component/Group.js @@ -120,11 +120,11 @@ Group.prototype.setData = function(data) { // update style if (this.style) { - util.removeCssText(this.dom.label, 'vis-' + this.style); + util.removeCssText(this.dom.label, this.style); this.style = null; } if (data && data.style) { - util.addCssText(this.dom.label, 'vis-' + data.style); + util.addCssText(this.dom.label, data.style); this.style = data.style; } };