From 83a6cf889e4733d1961e34f696c83b384c7e312b Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 4 Dec 2014 10:13:22 +0100 Subject: [PATCH] redraw on back on manipulation --- dist/vis.js | 4 +++- lib/network/mixins/ManipulationMixin.js | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/vis.js b/dist/vis.js index 6f388263..354a48dc 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -5,7 +5,7 @@ * A dynamic, browser-based visualization library. * * @version 3.7.2-SNAPSHOT - * @date 2014-12-03 + * @date 2014-12-04 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com @@ -32468,11 +32468,13 @@ return /******/ (function(modules) { // webpackBootstrap } var locale = this.constants.locales[this.constants.locale]; + if (this.edgeBeingEdited !== undefined) { this.edgeBeingEdited._disableControlNodes(); this.edgeBeingEdited = undefined; this.selectedControlNode = null; this.controlNodesActive = false; + this._redraw(); } // restore overloaded functions diff --git a/lib/network/mixins/ManipulationMixin.js b/lib/network/mixins/ManipulationMixin.js index 0f69e2df..264b5166 100644 --- a/lib/network/mixins/ManipulationMixin.js +++ b/lib/network/mixins/ManipulationMixin.js @@ -71,11 +71,13 @@ exports._createManipulatorBar = function() { } var locale = this.constants.locales[this.constants.locale]; + if (this.edgeBeingEdited !== undefined) { this.edgeBeingEdited._disableControlNodes(); this.edgeBeingEdited = undefined; this.selectedControlNode = null; this.controlNodesActive = false; + this._redraw(); } // restore overloaded functions