diff --git a/docs/graph.html b/docs/graph.html
index e95f855c..0d13cde2 100644
--- a/docs/graph.html
+++ b/docs/graph.html
@@ -1390,12 +1390,12 @@ var options: {
};
- Because the interface elements are CSS and HTML, the user will have to correct for size changes of the canvas. To facilitate this, a new event has been added called frameResize.
+ Because the interface elements are CSS and HTML, the user will have to correct for size changes of the canvas. To facilitate this, a new event has been added called resize.
A function can be bound to this event. This function is supplied with the new widht and height of the canvas. The CSS can then be updated accordingly.
An code snippet from example 21 is shown below.
-graph.on("frameResize", function(params) {console.log(params.width,params.height)});
+graph.on("resize", function(params) {console.log(params.width,params.height)});
Clustering
@@ -1882,7 +1882,7 @@ graph.off('select', onSelect);
- frameResize |
+ resize |
Fired when the size of the canvas has been updated (not neccecarily changed) by the setSize() function or by the setOptions() function. |
diff --git a/examples/graph/21_data_manipulation.html b/examples/graph/21_data_manipulation.html
index 59c019ae..d59229eb 100644
--- a/examples/graph/21_data_manipulation.html
+++ b/examples/graph/21_data_manipulation.html
@@ -166,7 +166,7 @@
document.getElementById('selection').innerHTML = 'Selection: ' + params.nodes;
});
- graph.on("frameResize", function(params) {console.log(params.width,params.height)});
+ graph.on("resize", function(params) {console.log(params.width,params.height)});
function clearPopUp() {
var saveButton = document.getElementById('saveButton');
diff --git a/src/graph/Graph.js b/src/graph/Graph.js
index 8e13055c..21154681 100644
--- a/src/graph/Graph.js
+++ b/src/graph/Graph.js
@@ -1184,7 +1184,7 @@ Graph.prototype.setSize = function(width, height) {
this.manipulationDiv.style.width = this.frame.canvas.clientWidth;
}
- this.emit('frameResize', {width:this.frame.canvas.width,height:this.frame.canvas.height});
+ this.emit('resize', {width:this.frame.canvas.width,height:this.frame.canvas.height});
};
/**
|