From e12406b59a7204e838c8a2bb9830d5a2c56e7c8c Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Mon, 3 Mar 2014 13:56:36 +0100 Subject: [PATCH] renamed frameResize to resize --- docs/graph.html | 6 +++--- examples/graph/21_data_manipulation.html | 2 +- src/graph/Graph.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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.