Browse Source

Merge remote-tracking branch 'origin/v4' into v4

flowchartTest
jos 9 years ago
parent
commit
4f4fa3f37b
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      lib/network/modules/Canvas.js
  2. +1
    -0
      lib/network/modules/CanvasRenderer.js

+ 1
- 0
lib/network/modules/Canvas.js View File

@ -38,6 +38,7 @@ class Canvas {
this.body.view.translation.y = obj.height * 0.5;
}
});
this.body.emitter.on("setSize", this.setSize.bind(this));
this.body.emitter.on("destroy", () => {
this.hammerFrame.destroy();
this.hammer.destroy();

+ 1
- 0
lib/network/modules/CanvasRenderer.js View File

@ -111,6 +111,7 @@ class CanvasRenderer {
* chart will be resized too.
*/
redraw() {
this.body.emitter.emit('setSize');
this._redraw();
}

Loading…
Cancel
Save