Browse Source

Fixed #1001: First element of group style being cut

flowchartTest
jos 9 years ago
parent
commit
77df99c29a
2 changed files with 6 additions and 2 deletions
  1. +4
    -0
      HISTORY.md
  2. +2
    -2
      lib/timeline/component/Group.js

+ 4
- 0
HISTORY.md View File

@ -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

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

@ -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;
}
};

Loading…
Cancel
Save