Commit 07a6189d authored by Marzell Camenzind's avatar Marzell Camenzind

Added ability to resize the plot to a given size.

parent 8a7204de
...@@ -775,9 +775,9 @@ Licensed under the MIT license. ...@@ -775,9 +775,9 @@ Licensed under the MIT license.
}; };
}; };
plot.shutdown = shutdown; plot.shutdown = shutdown;
plot.resize = function () { plot.resize = function (width, height) {
var width = placeholder.width(), width = width || placeholder.width();
height = placeholder.height(); height = height || placeholder.height();
surface.resize(width, height); surface.resize(width, height);
overlay.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