Commit 6578355d authored by David Schnur's avatar David Schnur

Merge pull request #1188 from mcamenzind/0.9-work

Added ability to resize the plot to a given size.
parents 8a7204de 07a6189d
......@@ -775,9 +775,9 @@ Licensed under the MIT license.
};
};
plot.shutdown = shutdown;
plot.resize = function () {
var width = placeholder.width(),
height = placeholder.height();
plot.resize = function (width, height) {
width = width || placeholder.width();
height = height || placeholder.height();
surface.resize(width, height);
overlay.resize(width, height);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment