Added ability to resize the plot to a given size.

pull/1/head
Marzell Camenzind 13 years ago
parent 8a7204de50
commit 07a6189d29

@ -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);
}; };

Loading…
Cancel
Save