Browse Source

Fixed background items being selectable and editable when a height is set (see #454)

v3_develop
jos 10 years ago
parent
commit
246b0be530
5 changed files with 20 additions and 19 deletions
  1. +1
    -0
      HISTORY.md
  2. +3
    -4
      dist/vis.js
  3. +1
    -1
      dist/vis.map
  4. +12
    -12
      dist/vis.min.js
  5. +3
    -2
      lib/timeline/component/item/BackgroundItem.js

+ 1
- 0
HISTORY.md View File

@ -12,6 +12,7 @@ http://visjs.org
- Fixed configuring either `start` or `end`. - Fixed configuring either `start` or `end`.
- Fixed Timeline and Graph2d getting stuck in an infinite loop in some - Fixed Timeline and Graph2d getting stuck in an infinite loop in some
circumstances. circumstances.
- Fixed background items being selectable and editable when a height is set.
### Graph2D ### Graph2D

+ 3
- 4
dist/vis.js View File

@ -6572,8 +6572,6 @@ return /******/ (function(modules) { // webpackBootstrap
var start = this.options.start != undefined ? this.options.start : dataRange.start; var start = this.options.start != undefined ? this.options.start : dataRange.start;
var end = this.options.end != undefined ? this.options.end : dataRange.end; var end = this.options.end != undefined ? this.options.end : dataRange.end;
console.log(this.options.start, this.options.end, dataRange)
this.setWindow(start, end, {animate: false}); this.setWindow(start, end, {animate: false});
} }
else { else {
@ -14450,8 +14448,9 @@ return /******/ (function(modules) { // webpackBootstrap
dom.content.className = 'content'; dom.content.className = 'content';
dom.box.appendChild(dom.content); dom.box.appendChild(dom.content);
// attach this item as attribute
dom.box['timeline-item'] = this;
// Note: we do NOT attach this item as attribute to the DOM,
// such that background items cannot be selected
//dom.box['timeline-item'] = this;
this.dirty = true; this.dirty = true;
} }

+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 12
- 12
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 3
- 2
lib/timeline/component/item/BackgroundItem.js View File

@ -71,8 +71,9 @@ BackgroundItem.prototype.redraw = function() {
dom.content.className = 'content'; dom.content.className = 'content';
dom.box.appendChild(dom.content); dom.box.appendChild(dom.content);
// attach this item as attribute
dom.box['timeline-item'] = this;
// Note: we do NOT attach this item as attribute to the DOM,
// such that background items cannot be selected
//dom.box['timeline-item'] = this;
this.dirty = true; this.dirty = true;
} }

Loading…
Cancel
Save